Add count subcommand