Validate number of arguments

fixes #7442