code: def _dict_increment(self, dictionary, key):
          
          if key in dictionary:
              dictionary[key] += 1
          else:
              dictionary[key] = 1
docs: Increments the value of the dictionary at the specified key.