# How to count number of elements present under a particular tag

**URL:** <https://community.automationedge.com/t/how-to-count-number-of-elements-present-under-a-particular-tag/17632>\
**Category:** Process Studio\
**Tags:** rpa, process-studio\
**Created:** [February 22, 2026, 9:41am UTC](https://community.automationedge.com/t/how-to-count-number-of-elements-present-under-a-particular-tag/17632 "2026-02-22T09:41:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![priya24](https://avatars.discourse-cdn.com/v4/letter/p/ccd318/32.png) [@priya24](https://community.automationedge.com/u/priya24)\
**Post date:** [February 22, 2026, 9:41am UTC](https://community.automationedge.com/t/how-to-count-number-of-elements-present-under-a-particular-tag/17632/1 "2026-02-22T09:41:18Z")

</div>

How to find total number of elements present under a particular tag, for ex. if under a div tag there are 5 p elements, and i want to know total p elements.

---

<div class="post-metadata">

**Author:** ![Sunny101](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@Sunny101](https://community.automationedge.com/u/Sunny101)\
**Post date:** [February 24, 2026, 9:15am UTC](https://community.automationedge.com/t/how-to-count-number-of-elements-present-under-a-particular-tag/17632/2 "2026-02-24T09:15:04Z")

</div>

you can use JS functions like getElementById(). Tell me do you want to count the nested

?
