api count