class_docstr: Automatically count tokens based on the organization.
class_docstr_tok: ["Automatically","count","tokens","based","on","the","organization","."]
docstr: Return a token counter based on the organization.
docstr_tok: ["Return","a","token","counter","based","on","the","organization","."]
code: def get_token_counter(self, organization: str) -> TokenCounter:
      """Return a token counter based on the organization."""
      token_counter = self.token_counters.get(organization)
      if token_counter is None:
          if organization == "openai":
              token_counter = OpenAITokenCounter(
                  self.huggingface_client
              )
          elif organization == "ai21":
              token_counter = AI21TokenCounter()
          elif organization == "gooseai":
              token_counter = GooseAITokenCounter()
          elif organization == "cohere":
              token_counter = CohereTokenCounter()
          else:
              token_counter = FreeTokenCounter()
          self.token_counters[organization] = token_counter
      return token_counter
  
file_path: H2O/h2o_hf/helm/src/helm/proxy/token_counters/auto_token_counter.py
imports: from typing import Dict, List
  from helm.common.request import Request, Sequence
  from helm.proxy.clients.huggingface_client import HuggingFaceClient
  from .ai21_token_counter import AI21TokenCounter
  from .cohere_token_counter import CohereTokenCounter
  from .free_token_counter import FreeTokenCounter
  from .gooseai_token_counter import GooseAITokenCounter
  from .openai_token_counter import OpenAITokenCounter
  from .token_counter import TokenCounter
label_desc: Use image node_id 2 for calling the AutoTokenCounter obj's underlying member method code with example usage: obj.get_token_counter(organization) and returns: token_counter