Updated the param_num() method to take the various models into account.
Authored by: bugman 2008-07-10
Parent: [r6929]
Child: [r6931]