n.param function

computes the number of parameters of a model