code: def num_values(self):
          
          self._num_values, value = self.get_attr_int(self._num_values, 'num_values')
          return value
docs: Returns the number of `value<N>` attributes that will return a valid value
          for the current mode.