removing include api_ref_call in api_count method