# Getting tag counts

**URL:** <https://forum.inductiveautomation.com/t/getting-tag-counts/69361>\
**Category:** General Discussion\
**Created:** [February 2, 2023, 6:57pm UTC](https://forum.inductiveautomation.com/t/getting-tag-counts/69361 "2023-02-02T18:57:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bwirth](https://avatars.discourse-cdn.com/v4/letter/b/41988e/32.png) [@bwirth](https://forum.inductiveautomation.com/u/bwirth)\
**Post date:** [February 2, 2023, 6:57pm UTC](https://forum.inductiveautomation.com/t/getting-tag-counts/69361/1 "2023-02-02T18:57:06Z")

</div>

Maybe I'm just missing it, but it there someplace I can get this value or will I need to count them? Just want to display as part of a support screen...

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/0/f05c07a0c00d071b39ee3e8cf9cbb762749221e0.png)

---

<div class="post-metadata">

**Author:** ![kyler.kamyszek](https://avatars.discourse-cdn.com/v4/letter/k/a4c791/32.png) [@kyler.kamyszek](https://forum.inductiveautomation.com/u/kyler.kamyszek)\
**Post date:** [February 2, 2023, 7:19pm UTC](https://forum.inductiveautomation.com/t/getting-tag-counts/69361/2 "2023-02-02T19:19:49Z")

</div>

Use system.tag.browse

[https://docs.inductiveautomation.com/display/DOC81/system.tag.browse](https://docs.inductiveautomation.com/display/DOC81/system.tag.browse)

You can use name=\* then do a len(data) on the return from that method. You and mess with the wildcards to get tag counts from different sections of your tag providers.

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [February 2, 2023, 8:00pm UTC](https://forum.inductiveautomation.com/t/getting-tag-counts/69361/3 "2023-02-02T20:00:47Z")

</div>

Assuming you are on version 8.1.19 or higher, I would use the tag report tool.  
[https://docs.inductiveautomation.com/display/DOC81/Tag+Report+Tool](https://docs.inductiveautomation.com/display/DOC81/Tag+Report+Tool)

Example script the tag report tool can generate for you, then get the length as @kyler.kamyszek stated,

```auto
provider = 'YourTagProvider'

query = {
  "options": {
    "includeUdtMembers": True,
    "includeUdtDefinitions": False
  },
  "condition": {
    "attributes": {
      "values": [],
      "requireAll": True
    }
  },
  "returnProperties": [
    "tagType",
    "quality"
  ]
}

results = system.tag.query(provider, query)
print len(results)

```

---

<div class="post-metadata">

**Author:** ![bwirth](https://avatars.discourse-cdn.com/v4/letter/b/41988e/32.png) [@bwirth](https://forum.inductiveautomation.com/u/bwirth)\
**Post date:** [February 2, 2023, 8:28pm UTC](https://forum.inductiveautomation.com/t/getting-tag-counts/69361/4 "2023-02-02T20:28:28Z")

</div>

Thanks y'all. (Good Texas term)

Was just thinking they may have them stored somewhere I couldn't find. Appreciate the assist!
