def get_species_counts(individuals):
    """
    Returns a dictionary with species name as the key and the number of
    individuals in that species as the value.
    :param individuals:
    :return:
    """
    species_counts = {}
    
    for individual in individuals:
        
        species = individual.split("_")[-1]
        if species not in species_counts:
            species_counts[species] = 0
        species_counts[species] += 1
    
    return species_counts