/**
 * This function counts the number of common species between two sets.
 *
 * @param speciesList1 A set containing the first list of species.
 * @param speciesList2 A set containing the second list of species.
 * @return The count of common species between the two sets.
 */
fun countCommonSpecies(speciesList1: Set<String>, speciesList2: Set<String>): Int {

    var commonSpeciesCount = 0

    // Iterate over each species in the first set
    for (species1 in speciesList1) {
        // Iterate over each species in the second set
        for (species2 in speciesList2) {
            // Check if current species in the first set exists in the second set
            if (species1 == species2) {
                // Increment the count and continue to the next species in the first set
                commonSpeciesCount++
                continue
            } else {
                // Continue to the next species in the second set
                continue
            }
        }
    }

    return commonSpeciesCount
}
/**
 * This function counts the number of common species between two sets.
 *
 * @param speciesList1 A set containing the first list of species.
 * @param speciesList2 A set containing the second list of species.
 * @return The count of common species between the two sets.
 */
fun countCommonSpecies(speciesList1: Set<String>, speciesList2: Set<String>): Int {
/**
 * This function counts the number of common species between two sets.
 *
 * @param speciesList1 A set containing the first list of species.
 * @param speciesList2 A set containing the second list of species.
 * @return The count of common species between the two sets.
 */
fun countCommonSpecies(speciesList1: Set<String>, speciesList2: Set<String>): Int {

    var commonSpeciesCount = 0

    // Iterate over each species in the first set
    for (species1 in speciesList1) {
        // Iterate over each species in the second set
        for (species2 in speciesList2) {
            // Check if current species in the first set exists in the second set
            if (species1 == species2) {
                // Increment the count and continue to the next species in the first set
                commonSpeciesCount++
                continue
            } else {
                // Continue to the next species in the second set
                continue
            }
        }
    }

    return commonSpeciesCount
}