code: def _ConvertDictToCollectionsCounter(cls, json_dict):
      
      collections_counter = collections.Counter()
  
      for key, value in iter(json_dict.items()):
        if key == '__type__':
          continue
        collections_counter[key] = value
  
      return collections_counter
docs: Converts a JSON dict into a collections.Counter.
  
      The dictionary of the JSON serialized objects consists of:
      {
          '__type__': 'collections.Counter'
          ...
      }
  
      Here '__type__' indicates the object base type. In this case this should
      be 'collections.Counter'. The rest of the elements of the dictionary make up
      the preprocessing object properties.
  
      Args:
        json_dict (dict[str, object]): JSON serialized objects.
  
      Returns:
        collections.Counter: counter.