service.check_param_number function

Check number of parameters and stop function if it exceeds the expected number of parameters