Add support for `--max-count` in `CommitService::CountCommits`

~Conversation: #382 (closed)

See #382 (comment 48993695) for details.