handler/preprocessing: Check if the amount of arguments provided is correct (this can be either a lambda/function or integer)