def update_inc(initial, key, count):
 initial = (initial or {})
 initial[key] = (count + initial.get(key, 0))
 return initial

def update_inc ( initial , key , count ) : initial = ( initial or { } ) initial [ key ] = ( count + initial . get ( key , 0 ) ) return initial
update or create a dict of int counters .