class_docstr: Automatically count tokens based on the organization.
class_docstr_tok: ["Automatically","count","tokens","based","on","the","organization","."]
docstr: Counts tokens based on the organization.
docstr_tok: ["Counts","tokens","based","on","the","organization","."]
code: def count_tokens(
      self, request: Request, completions: List[Sequence]
  ) -> int:
      """
      Counts tokens based on the organization.
      """
      token_counter: TokenCounter = self.get_token_counter(
          request.model_organization
      )
      return token_counter.count_tokens(request, completions)
  
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 3 for calling the AutoTokenCounter obj's underlying member method code with example usage: obj.count_tokens(request, completions) and returns: token_counter