reinstating api_count