Computes the number of free parameters in an array of smodels.
Computes the number of free parameters in an array of smodels. E.g. if the number of parameter from pi is N - 1. Counts only those parameters, that can be changed during training. If pi[i] = 0 it is not counted, since it can't be changed.