The simplest way for a customer to count hosts to determine their licensing needs is to install a trial version of Foglight Evolve and look at license consumption at the License dashboard. From the UI, click Standard View, Environment Overview, FE Licensing Overview, and look at usage for each license type. You will Evolve underscore Cloud, Evolve underscore Operate, and Evolve underscore Monitor. Monitor isn't shown here. To get an estimate without installing a trial version of Foglight Evolve, here are some options to count VMware and Hyper-V hosts and to make an estimate in a Foglight Evolve environment.
VMware. Using the vSphere client, connect to each vCenter and click on the top of the tree and click Summary. Hyper-V. Microsoft Technet offers a Get-SCCVMInventory Power Shell script that runs on a SCVMM server. From the Q&A, the latest version can be found at a Power Show Gallery dot com. Note that the script only counts VMs. You will manually have to count the Hyper-V servers on which they run.
Disclaimer. Use this script at your own risk. Quest takes no responsibility for any damage it may cause. Best practice is to first test any script in a non-production environment. Foglight Evolve. If someone is upgrading from Foglight for Virtualization Enterprise Edition, where we could hypervisor CPU sockets to Foglight Evolve where we count hosts, a general estimate would be 1 CPU socket translates to about 15 hosts.