<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_release_count(self, package_name: str) -> int: """ Returns the number of releases of the given package name available on the current registry. """

        validate_package_name(package_name)
        self._validate_set_registry()
        return self.registry._num_release_ids(package_name)