added $oauth as a parameter to api_count