# Get number based off inventory criteria

**URL:** <https://forum.ansible.com/t/get-number-based-off-inventory-criteria/31557>\
**Category:** Ansible Project\
**Created:** [October 28, 2019, 10:45pm UTC](https://forum.ansible.com/t/get-number-based-off-inventory-criteria/31557 "2019-10-28T22:45:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Bidwell](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@Chris\_Bidwell](https://forum.ansible.com/u/Chris_Bidwell)\
**Post date:** [October 28, 2019, 10:45pm UTC](https://forum.ansible.com/t/get-number-based-off-inventory-criteria/31557/1 "2019-10-28T22:45:42Z")

</div>

Hi all

Is there any way to output a growing count of, let’s say, systems that match a specific RH version or RH type (Workstation or Server). Like an end result showing 35 Servers, or 42 Workstations, etc.

Thanks!  
Chris

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [October 29, 2019, 10:11pm UTC](https://forum.ansible.com/t/get-number-based-off-inventory-criteria/31557/2 "2019-10-29T22:11:49Z")

</div>

If you find that in facts or make your own custom facts that say if a host is a server of client you can always count them up afterwords.
