Get number based off inventory criteria

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

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.