refactored the mobile counts api