count api