Checks the number of parameters that a method or constructor has.