Fixes #844 #5725 - correct hosts count in puppetclass

```if puppetclasses.present?``` reads a bit better