<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def npar(self):
 """get number of parameters Returns ------- npar : int the number of parameters """

        self.control_data.npar = self.parameter_data.shape[0]
        return self.control_data.npar