class_docstr: Runing statistics for counting tokens before/after subword transform.
code: def update(self, other: "SubwordStats"):
      self.subwords += other.subwords
      self.words += other.words
  
imports: import re
  from onmt.utils.logging import logger
  from onmt.transforms import register_transform
  from .transform import Transform, ObservableStats
  from onmt.constants import DefaultTokens
label_desc: Use image node_id 2 for calling the SubwordStats obj's underlying member method code with example usage: obj.update(other) without return types