public static methodParameterCount(typeName as String, methodName as String) as Int:
Reflection helper: returns the number of parameters of a method.