# Postman New UI 8.0.3 Where did the "Count" go?

**URL:** <https://community.postman.com/t/postman-new-ui-8-0-3-where-did-the-count-go/19773>\
**Category:** Help Hub\
**Created:** [January 31, 2021, 2:31pm UTC](https://community.postman.com/t/postman-new-ui-8-0-3-where-did-the-count-go/19773 "2021-01-31T14:31:17Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![allen888](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@allen888](https://community.postman.com/u/allen888)\
**Post date:** [January 31, 2021, 2:31pm UTC](https://community.postman.com/t/postman-new-ui-8-0-3-where-did-the-count-go/19773/1 "2021-01-31T14:31:17Z")

</div>

I have just recently Updated my Postman Version to 8.0.3 and got the “New UI”

I the previous versions the there was a “Count” of the number of requests that were contained within a Collection that showed up adjacent to the collection name.  
 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/8/e/8edceb43aec3d15bea070d83e2f47a05e7d4be1c.png)  
I’m not seeing this count any more.  
 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/5/1/51fabcfa3c7ee3d4e2a0530181367446cd6a01e7.png)  
Did this get Moved?

- If so where too?

Deprecated?

- I hope not as we used this as part of our Management of close to 7000 requests in 29 collections that we run on a daily basis.
- if this is the case is there an “easy” way to get a count of the number of requests in a collection without actually “Counting” them one by one. We use a multi level request set structure that would make this very tedious and time consuming.

---

<div class="post-metadata">

**Author:** ![ScottTaylor1986](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@ScottTaylor1986](https://community.postman.com/u/ScottTaylor1986)\
**Post date:** [February 12, 2021, 1:07pm UTC](https://community.postman.com/t/postman-new-ui-8-0-3-where-did-the-count-go/19773/2 "2021-02-12T13:07:47Z")

</div>

I agree. It was a useful feature. Any chance we could get the count back? Or an option to turn it on.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [February 13, 2021, 11:19am UTC](https://community.postman.com/t/postman-new-ui-8-0-3-where-did-the-count-go/19773/3 "2021-02-13T11:19:53Z")

</div>

Hey @ScottTaylor1986 / @allen888 👋

This was removed as part of the major UI update that came with the V8 release, we are listening to this feedback and the team is working on adding this information back into the new UI. ❤

No timelines available for this work yet.

---

<div class="post-metadata">

**Author:** ![yelena.frenkel](https://avatars.discourse-cdn.com/v4/letter/y/c6cbf5/32.png) [@yelena.frenkel](https://community.postman.com/u/yelena.frenkel)\
**Post date:** [March 10, 2021, 5:52pm UTC](https://community.postman.com/t/postman-new-ui-8-0-3-where-did-the-count-go/19773/4 "2021-03-10T17:52:41Z")

</div>

we need this back, please!  
It contains a valuable information,  
thanks!  
Is there a way to get this info somehow in Postman 8?

---

<div class="post-metadata">

**Author:** ![sherry.key](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@sherry.key](https://community.postman.com/u/sherry.key)\
**Post date:** [August 17, 2021, 2:58pm UTC](https://community.postman.com/t/postman-new-ui-8-0-3-where-did-the-count-go/19773/5 "2021-08-17T14:58:21Z")

</div>

Just checking in here;  
Is there another way to get this info?

---

<div class="post-metadata">

**Author:** ![neilstudd](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/neilstudd/32/8213_2.png) [@neilstudd](https://community.postman.com/u/neilstudd)\
**Post date:** [August 17, 2021, 3:27pm UTC](https://community.postman.com/t/postman-new-ui-8-0-3-where-did-the-count-go/19773/6 "2021-08-17T15:27:19Z")

</div>

Depending upon your needs, one way that you could to this would be to utilise the [Postman API](https://www.postman.com/postman/workspace/postman-public-workspace/documentation/12959542-c8142d51-e97c-46b6-bd77-52bb66712c9a) itself, which (when authenticated) allows you to retrieve data about your collections.

If you perform a [Single Collection request](https://www.postman.com/postman/workspace/postman-public-workspace/request/12959542-a6a282df-907e-438b-8fe6-e5efaa60b8bf) (specifying the ID of your collection) then you can add code such as the below into its Tests tab. This will recursively loop through all of the items in the collection (including subfolders) and extract a total count of the requests within the folder.

```auto
function countRequests(obj) {
  for (let item in obj) {
    if(obj[item].hasOwnProperty("request")) {
        requestCount += 1;
    } else {
        countRequests(obj[item].item);
    }
  }
}

var requestCount = 0;
countRequests(pm.response.json().collection.item);
console.log("Collection contains " + requestCount + " requests");

```

When I run this script against one of my collections, I see the correct number output in the console:

 ![image](https://us1.discourse-cdn.com/getpostman/original/2X/f/f42e6e71a06fe7e4a4cc1033213e879cd44a7f49.png)

I appreciate that this is just a workaround, but I hope this may still help. 🚀

---

<div class="post-metadata">

**Author:** ![sherry.key](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@sherry.key](https://community.postman.com/u/sherry.key)\
**Post date:** [August 17, 2021, 7:03pm UTC](https://community.postman.com/t/postman-new-ui-8-0-3-where-did-the-count-go/19773/7 "2021-08-17T19:03:19Z")

</div>

Thank you neilstudd. I am trying to run this code  
I am getting this error in console  
“TypeError: Cannot read property ‘item’ of undefined”

---

<div class="post-metadata">

**Author:** ![neilstudd](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/neilstudd/32/8213_2.png) [@neilstudd](https://community.postman.com/u/neilstudd)\
**Post date:** [August 18, 2021, 7:34am UTC](https://community.postman.com/t/postman-new-ui-8-0-3-where-did-the-count-go/19773/8 "2021-08-18T07:34:41Z")

</div>

Hi @sherry.key,

Can you check the **Body** tab of the response, to ensure you have successfully loaded your collection data?

If the data failed to load (such as below, where I had not successfully authenticated with the endpoint) then the test script would fail, because it cannot find the collections data in the response.

 ![image](https://us1.discourse-cdn.com/getpostman/original/2X/8/8324bc71383a5fce4a82a34596445d95e06df154.png)

If you have successfully retrieved the details of a single collection, the response will begin like the below, and the script should complete successfully:

 ![image](https://us1.discourse-cdn.com/getpostman/original/2X/a/a38f5cffb91fb2d6d9f70b7d48ca3bbffd4c8777.png)

---

<div class="post-metadata">

**Author:** ![sherry.key](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@sherry.key](https://community.postman.com/u/sherry.key)\
**Post date:** [August 18, 2021, 4:48pm UTC](https://community.postman.com/t/postman-new-ui-8-0-3-where-did-the-count-go/19773/9 "2021-08-18T16:48:36Z")

</div>

Neil, I receive the correct response but it does not have requests

“collections”: [

{

“id”: “”,

“name”: “Extras”,

“owner”: “”,

“createdAt”: “2021-08-17T17:48:53.000Z”,

“updatedAt”: “2021-08-17T18:06:26.000Z”,

“uid”: “”,

“isPublic”: **false**

},

Your code is looking for request and it is not returned. Is that expected?

pm. **test** ( **function** countRequests(obj) {

**for** (let item **in** obj) {

**if** (obj[item].hasOwnProperty(“request”)) {

requestCount **+=** 1;

} **else** {

countRequests(obj[item].item);

---

<div class="post-metadata">

**Author:** ![neilstudd](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/neilstudd/32/8213_2.png) [@neilstudd](https://community.postman.com/u/neilstudd)\
**Post date:** [August 18, 2021, 5:03pm UTC](https://community.postman.com/t/postman-new-ui-8-0-3-where-did-the-count-go/19773/10 "2021-08-18T17:03:17Z")

</div>

Hi @sherry.key,

Your response is returning “collections” rather than “collection” - this indicates that it is trying to return all of your collections. (The list of all collections does not include details of the individual requests within.)

You should ensure that your collection ID is being set correctly in the request URL (either by setting it within a variable, or by hardcoding in the URL). This should ensure that you get “collection” back in the response, which will contain full details of all the sub-requests.

---

<div class="post-metadata">

**Author:** ![sherry.key](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@sherry.key](https://community.postman.com/u/sherry.key)\
**Post date:** [August 19, 2021, 9:54pm UTC](https://community.postman.com/t/postman-new-ui-8-0-3-where-did-the-count-go/19773/11 "2021-08-19T21:54:57Z")

</div>

Thank you @neilstudd !  
Got it working!

---

<div class="post-metadata">

**Author:** ![shyam.suchak](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@shyam.suchak](https://community.postman.com/u/shyam.suchak)\
**Post date:** [October 25, 2021, 11:18am UTC](https://community.postman.com/t/postman-new-ui-8-0-3-where-did-the-count-go/19773/12 "2021-10-25T11:18:35Z")

</div>

> [@neilstudd](#):
>
> Single Collection request

It seems [Single Collection request](https://www.postman.com/postman/workspace/postman-public-workspace/request/12959542-e52ed203-8c5f-4c71-88fd-c6662f4a4e15) Resource is no longer available.

Can you please suggest a workaround ?

---

<div class="post-metadata">

**Author:** ![allen888](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@allen888](https://community.postman.com/u/allen888)\
**Post date:** [October 25, 2021, 11:43am UTC](https://community.postman.com/t/postman-new-ui-8-0-3-where-did-the-count-go/19773/13 "2021-10-25T11:43:49Z")

</div>

@ [shyam.suchak](https://community.postman.com/u/shyam.suchak)

I’m still seeing it under the Postman API Collection:  
[Collections - Postman Public Workspace](https://www.postman.com/postman/workspace/postman-public-workspace/folder/12959542-c705956d-1005-4fbc-803c-b6b985242a85?ctx=documentation)

 ![image](https://us1.discourse-cdn.com/getpostman/original/2X/c/ca30f24d4eb4f9cfdba6971fa4031a0c2cf0843e.png)

I use this bit of code in the tests to add the Collection name to the count written to the console

```
 function countRequests(obj) {
    for (let item in obj) {
        if (obj[item].hasOwnProperty("request")) {
            requestCount += 1;
        } else {
            countRequests(obj[item].item);
        }
    }
}

var currentCollectionName = (pm.response.json().collection.info.name);
pm.environment.set("currentCollectionName", pm.response.json().collection.info.name);
var requestCount = 0;
countRequests(pm.response.json().collection.item);
console.log("Collection " + pm.environment.get("currentCollectionName") + " contains " + requestCount + " requests");

pm.environment.unset("currentCollectionName");
pm.environment.unset("collection_uid");

```

I’m using a pre-request script to populate the “collection\_uid” Variable

I’m running this periodically to get the counts for 33 collections that we run for our API Automation.

---

<div class="post-metadata">

**Author:** ![neilstudd](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/neilstudd/32/8213_2.png) [@neilstudd](https://community.postman.com/u/neilstudd)\
**Post date:** [October 25, 2021, 1:05pm UTC](https://community.postman.com/t/postman-new-ui-8-0-3-where-did-the-count-go/19773/14 "2021-10-25T13:05:21Z")

</div>

Apologies, as @allen888 has highlighted, the URL for that specific request has changed - I’ve updated the direct link in the original post.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [August 24, 2023, 2:27pm UTC](https://community.postman.com/t/postman-new-ui-8-0-3-where-did-the-count-go/19773/15 "2023-08-24T14:27:06Z")

</div>

Closed on August 24, 2023, 2:27pm UTC


