code: def __init__(self, counter: Counter):
      self._counter = counter
  
imports: from __future__ import annotations
  from typing import Tuple
  from collections import Counter
  from parlai.core.torch_agent import TorchAgent
  from parlai.core.metrics import Metric, SumMetric
  from parlai.core.message import Message
label_desc: Use image node_id 1 to create a new _CounterMetric object from inherited base classes: Metric with example: obj = _CounterMetric(counter)