code: def number_of_values(self):
      
      if not self._registry_key and self._registry:
        self._GetKeyFromRegistry()
  
      if self._registry_key:
        return self._registry_key.number_of_values
  
      return 0
docs: int: number of values within the key.