Validate the number of arguments