def dictincr(dictionary, element):
 dictionary.setdefault(element, 0)
 dictionary[element] += 1
 return dictionary[element]

def dictincr ( dictionary , element ) : dictionary . setdefault ( element , 0 ) dictionary [ element ] += 1 return dictionary [ element ]
increments element in dictionary .