fixes 1773 added count_hosts method to puppetclass.rb