def METHOD_NAME(self, possibility):
    '''
    Returns a score based on the mixture of sharps and flats in a possible spelling:
    the score is given by the number of the lesser used accidental (sharps or flats)
    multiplied by the mixSharpsFlatsPenalty.
    '''
    if self.ruleObject.mixSharpsFlatsPenalty is False:
        return 1
    joinedPossibility = ''.join([p.name for p in possibility])
    flatCount = joinedPossibility.count('-')
    sharpCount = joinedPossibility.count('#')
    score = min([flatCount, sharpCount]) * self.ruleObject.mixSharpsFlatsPenalty
    return score