return count on api