getUserCount should be an function on the scope (controller/directive)