def _get_arg_count(method):
 if (not method):
  return 0
 arg_spec = inspect.getargspec(method)
 return len(arg_spec[0])

def _get_arg_count ( method ) : if ( not method ) : return 0 arg_spec = inspect . getargspec ( method ) return len ( arg_spec [ 0 ] )
get the number of args for a method .