def get_species_counts(data):
    """Count the number of individuals of each species"""
    species_counts = dict()
    for record in data:
        species = record[1]
        count = int(record[2])
        species_counts[species] = species_counts.get(species, 0) + count
    return species_counts