increment dict d at key by amount val
    no need to return since d is mutable

def increment(d, key, val=1):
    """
    increment dict d at key by amount val
    no need to return since d is mutable
    """
    if key in d:
        d[key] += val
    else:
        d[key] = val