def map_list(lst):
    """maps a list: key = element, value = number of element's occurences"""
    mp = {}
    for i in lst:
        e = mp.get(i)
        if e == None:
            mp[i] = 1
        else:
            mp[i] = e + 1
    return mp