This method returns the length of the parameters array that will be
passed to the run(IParameter[]) method.
For example, for a function like F(X, Y, Z), this function should return 3.
Returns the subexpression that is the immediate parent of the error portion.
For example, if the expression is 3+LN(MAX(4,))
then getInvalidPortionOfExpression() would return MAX(4,) and getSubExpression()
would return LN(MAX(4,))
The returned sub expressions may not exactly match the original string supplied
as the expression since space characters and paranthesis may be substituted for efficient
parsing.