def count_params():
    output = {}
for funcname in dir(builtins):
    f = getattr(builtins, funcname)
How to get the signature parameters of a callable, or reliably determine when this is not possible?