%PARMS returns the number of parameters passed to the current procedure. In the main procedure, %PARMS is equivalent to *PARMS. The document provides two examples: in the first, %PARMS correctly returns 3 when a procedure is called with two parameters; in the second, %PARMS again returns 3 when the procedure is called using two variables as parameters rather than explicit values.