code: def npar(self):
          
          self.control_data.npar = self.parameter_data.shape[0]
          return self.control_data.npar
docs: get number of parameters
  
          Returns
          -------
          npar : int
              the number of parameters