# Get Project Tag Count

**URL:** <https://forum.inductiveautomation.com/t/get-project-tag-count/56624>\
**Category:** Ignition\
**Created:** [February 28, 2022, 3:30pm UTC](https://forum.inductiveautomation.com/t/get-project-tag-count/56624 "2022-02-28T15:30:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [February 28, 2022, 3:30pm UTC](https://forum.inductiveautomation.com/t/get-project-tag-count/56624/1 "2022-02-28T15:30:26Z")

</div>

Is there an easy way to count the total number of tags included in a project? I tried exporting to XML and opening in Excel, but due to the way tags are structured it makes it very difficult to read and interpret.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 28, 2022, 4:02pm UTC](https://forum.inductiveautomation.com/t/get-project-tag-count/56624/2 "2022-02-28T16:02:48Z")

</div>

Tags don’t belong to a project, they are a global resource.

The main Status \> Overview page on the Ignition Gateway will tell you how many tags you have.

---

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [February 28, 2022, 4:30pm UTC](https://forum.inductiveautomation.com/t/get-project-tag-count/56624/3 "2022-02-28T16:30:17Z")

</div>

Thanks!

---

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [February 28, 2022, 5:00pm UTC](https://forum.inductiveautomation.com/t/get-project-tag-count/56624/4 "2022-02-28T17:00:57Z")

</div>

Is there a similar metric for historical tags?

---

<div class="post-metadata">

**Author:** ![kvane](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kvane/32/22228_2.png) [@kvane](https://forum.inductiveautomation.com/u/kvane)\
**Post date:** [February 28, 2022, 5:21pm UTC](https://forum.inductiveautomation.com/t/get-project-tag-count/56624/5 "2022-02-28T17:21:39Z")

</div>

I don’t believe there is a metric page for all historized tags. That being said, scripting lets us utilize the [system.tag.browse()](https://docs.inductiveautomation.com/display/DOC81/system.tag.browse) function to recursively check each tag in a provider. This can be used to return a list of all tags in a provider that have History Enabled. This is a simple example script, slightly changed from the User Manual, that you can test in the Script Console. It is not a very efficient script, but should be a good starting point:

```auto
results = system.tag.browse("[default]", {"recursive":True}).results
#Browse all tags in the "default" provider and print the tag path if it has History enabled
for result in results:
	if system.tag.read(str(result['fullPath'])+".HistoryEnabled").value:
		print str(result['fullPath'])+" has History Enabled."

```

---

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [February 28, 2022, 5:24pm UTC](https://forum.inductiveautomation.com/t/get-project-tag-count/56624/6 "2022-02-28T17:24:08Z")

</div>

Awesome! Thanks
