adding api_count back in

now that header include is gone