class_docstr: Implement a generic protocol to allow Orion to communicate using
  different storage backend
class_docstr_tok: ["Implement","a","generic","protocol","to","allow","Orion","to","communicate","using","different","storage","backend"]
docstr: Count the number of completed trials
docstr_tok: ["Count","the","number","of","completed","trials"]
code: def count_completed_trials(self, experiment: Experiment) -> int:
      """Count the number of completed trials"""
      raise NotImplementedError()
  
imports: from __future__ import annotations
  import contextlib
  import copy
  import logging
  import typing
  from datetime import datetime
  from typing import Literal
  import orion.core
  from orion.core.io import resolve_config
  from orion.core.utils import GenericFactory
label_desc: Use image node_id 22 for calling the BaseStorageProtocol obj's underlying member method code with example usage: obj.count_completed_trials(experiment) without return types