Fixes #844 #5725 - correct hosts count in puppetclass

This method appears verbatim in ```config_group``` and ```hostgroup```