def unique_fitnesses(population: list) -> int:
    """ Calculates the number of unique fitnesses in the population

    Args:
        population (list): The list of individual candidate solutions

    Returns:
        int: The number of unique fitnesses in the population
    """
    fitnesses = [individual.fitness for individual in population]
    unique = set(fitnesses)

    return len(unique)