code: def get_release_count(self, package_name: str) -> int:
          
          validate_package_name(package_name)
          self._validate_set_registry()
          return self.registry._num_release_ids(package_name)
docs: Returns the number of releases of the given package name available on the current registry.