Check number of input parameters.