public static methodCount(typeName as String) as Int:
Reflection helper: returns the number of methods declared on a type.