Check for correct number of arguments in subcommands