Returns the number of required arguments expected by `fn`. Results in an error when called with functions expecting other then required/positional arguments.