adding api_count to whoami