API count command