import inspect


def _get_arg_count(method):
    """Get the number of positional parameters for a method.

    :param method: The method to check.
    :returns: The number of positional parameters for the method.
    """
    if not method:
        return 0

    arg_spec = inspect.getfullargspec(method)
    return len(arg_spec[0])