How to Report number of hosts per checkmk site

if it can help someone else, as i was using distributed monitoring, i solve the problem by retrieving hostlist for each site on the monitoring host:

su -c 'cmk -l' -l {{ item.site }}

and after ,i used 'wc -l ’ command to get the number of monitored hosts for a given site