class_docstr: Counts the number of tokens used given `Request` and completions.
class_docstr_tok: ["Counts","the","number","of","tokens","used","given","`","Request","`","and","completions","."]
docstr: Counts the total number of tokens given a request and completions.
docstr_tok: ["Counts","the","total","number","of","tokens","given","a","request","and","completions","."]
code: def count_tokens(
      self, request: Request, completions: List[Sequence]
  ) -> int:
      """
      Counts the total number of tokens given a request and completions.
      """
      pass
  
imports: from abc import ABC, abstractmethod
  from typing import List
  from helm.common.request import Sequence, Request
label_desc: Use image node_id 1 for calling the TokenCounter obj's underlying member method code with example usage: obj.count_tokens(request, completions) without return types