Returns a list of dictionaries, one for each preference, that associates the integer 
        representation of each candidate with its position in the ranking, starting from 1 and
        returns a list of the number of times each preference is given.

def getRankMaps(self):
        """
        Returns a list of dictionaries, one for each preference, that associates the integer 
        representation of each candidate with its position in the ranking, starting from 1 and
        returns a list of the number of times each preference is given.
        """

        rankMaps = []
        for preference in self.preferences:
            rankMaps.append(preference.getRankMap())
        return rankMaps