code: def nFreeParams(self):
          
          nF = 0
          pars = self.params()
          for par in pars:
              if par.isFree():
                  nF += 1
          return nF
docs: Count the number of free parameters in the active model.