code: def n_members(self):
          
          if self.is_finite:
              return int(self.max - self.min + 1)
          else:
              return np.inf
docs: Returns the number of members in the domain if it
          `is_finite`, otherwise, returns `np.inf`.
  
          :type: ``int`` or ``np.inf``