count API