# Given a Tag Path, How do we get the number of Alarm raised?

**URL:** <https://forum.inductiveautomation.com/t/given-a-tag-path-how-do-we-get-the-number-of-alarm-raised/11134>\
**Category:** General Discussion\
**Created:** [January 28, 2016, 9:12am UTC](https://forum.inductiveautomation.com/t/given-a-tag-path-how-do-we-get-the-number-of-alarm-raised/11134 "2016-01-28T09:12:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ian](https://avatars.discourse-cdn.com/v4/letter/i/bb73d2/32.png) [@ian](https://forum.inductiveautomation.com/u/ian)\
**Post date:** [January 28, 2016, 9:12am UTC](https://forum.inductiveautomation.com/t/given-a-tag-path-how-do-we-get-the-number-of-alarm-raised/11134/1 "2016-01-28T09:12:07Z")

</div>

Suppose I have an integer tag with path “A\B{1}\Alarm”, and is a member of a UDT tag with path “A\B{1}” and {1} is just a number from 0 to N \< 10.

And suppose I have another string tag with path “A\B{1}\AlarmPath” which basically stores the value of “A\B{1}”, How can I get the number of Alarms raised by all tags in the “A\B{1}” UDT tag?
