This module measures the number of resources of a certain show (available, away, etc.) currently connected, and reports using Prosody 0.10 APIs
With the plugin installer in Prosody 0.12 you can use:
sudo prosodyctl install --server=https://modules.prosody.im/rocks/ mod_measure_client_presence
For earlier versions see the documentation for installing 3rd party modules