def getCountDict(inlist):
    """list -> count dict"""
    outCD = {}
    for element in inlist:
        if element in outCD:
            outCD[element] += 1
        else:
            outCD[element] = 1
    return outCD
