npar function

Calculate the number of parameters