Gets the number of parameters of an object.
The default methods returns the length of pars() if none are
NA, otherwise it returns NA.
npars(x, ...)
# S3 method for default
npars(x, ...)An object.
Other arguments passed to methods.
An integer scalar of the number of parameters.