class_docstr: A simple counter object that can periodically sync with a parent.
class_docstr_tok: ["A","simple","counter","object","that","can","periodically","sync","with","a","parent","."]
docstr: Increment a set of counters.
  
  Args:
    **counts: keyword arguments specifying count increments.
  
  Returns:
    The [name, value] mapping of all counters stored, i.e. this will also
    include counts that were not updated by this call to increment.
docstr_tok: ["Increment","a","set","of","counters",".","Args",":","*","*","counts",":","keyword","arguments","specifying","count","increments",".","Returns",":","The","[","name",",","value","]","mapping","of","all","counters","stored",",","i.e",".","this","will","also","include","counts","that","were","not","updated","by","this","call","to","increment","."]
code: def increment(self, **counts: Number) -> Dict[str, Number]:
      """Increment a set of counters.
  
      Args:
        **counts: keyword arguments specifying count increments.
  
      Returns:
        The [name, value] mapping of all counters stored, i.e. this will also
        include counts that were not updated by this call to increment.
      """
      with self._lock:
          for key, value in counts.items():
              self._counts.setdefault(key, 0)
              self._counts[key] += value
      return self.get_counts()
  
file_path: acme/acme/utils/counting.py
imports: import threading
  import time
  from typing import Dict, Mapping, Optional, Union
  from acme import core
label_desc: Use image node_id 2 for calling the Counter obj's underlying member method code with example usage: obj.increment() and returns: self