corrected puppetdb query for num_hosts