use helpers.countPets on server, fix client side pet count
hotfix for pet count on server
use _.isFunction