cli/count: simplify and document return value of print_count