Fixes #844 #5725 - correct hosts count in puppetclass

because it is no longer a cached_counter