<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def parameter_count(funcsig):
 """Get the number of positional-or-keyword or position-only parameters in a function signature. Parameters funcsig : inspect.Signature A UDF signature Returns ------- int The number of parameters """

    return sum(
        param.kind in {param.POSITIONAL_OR_KEYWORD, param.POSITIONAL_ONLY}
        for param in funcsig.parameters.values()
        if param.default is Parameter.empty
    )