'Calculate the number of occurrences of each value'

def uniqueCount(self):

    _map = {}
    for answer in self.valueList:
        if (answer in _map):
            _map[answer] += 1
        else:
            _map[answer] = 1
    return _map
