def METHOD_NAME(self) -> int:
    versions_root = os.path.join(self._root_dir, self.name)
    if not _is_dir(self._fs, versions_root, strict=True):
        log.warning("Missing logger folder: %s", versions_root)
        return 0
    existing_versions = []
    for d in self._fs.listdir(versions_root):
        full_path = d["name"]
        name = os.path.basename(full_path)
        if _is_dir(self._fs, full_path) and name.startswith("version_"):
            existing_versions.append(int(name.split("_")[1]))
    if len(existing_versions) == 0:
        return 0
    return max(existing_versions) + 1