def uniqueCount(self):

        map = {}
        for answer in self.valueList:
            if answer.key in map:
                map[answer.key] += 1
            else:
                map[answer.key] = 1
        return map

# =============================================================================
Calculate the number of occurances of each value
dataset/ETHPy150Open sahana/eden/modules/s3db/survey.py/S3LocationAnalysis.uniqueCount