def SetCounts(setList):
    """Take a list of sets and return a dict that maps elements in the sets
    to the number of sets they appear in as ints.
    """
    keys = set()
    for curSet in setList:
        keys.update(curSet)

    # Initialize the dictionary that will be used to store the counts of each element
    countDict = dict.fromkeys(keys, 0)
    # Populate the counts
    for curSet in setList:
        for element in curSet:
            countDict[element] += 1

    return countDict