/**
 * This function takes a list of landmasses and counts the number of continents in it.
 *
 * @param landmasses A list of strings representing different landmasses.
 * @return The number of continents in the provided landmasses.
 */
fun countContinents(landmasses: List<String>): Int {

    var continentCount = 0

    for (landmass in landmasses) {
        val isContinent = landmass.toLowerCase() in listOf("africa", "antarctica", "asia", "europe", "north america", "oceania", "south america")
        continentCount += if (isContinent) 1 else 0
    }

    return continentCount
}
/**
 * This function takes a list of landmasses and counts the number of continents in it.
 *
 * @param landmasses A list of strings representing different landmasses.
 * @return The number of continents in the provided landmasses.
 */
fun countContinents(landmasses: List<String>): Int {
/**
 * This function takes a list of landmasses and counts the number of continents in it.
 *
 * @param landmasses A list of strings representing different landmasses.
 * @return The number of continents in the provided landmasses.
 */
fun countContinents(landmasses: List<String>): Int {

    var continentCount = 0

    for (landmass in landmasses) {
        val isContinent = landmass.toLowerCase() in listOf("africa", "antarctica", "asia", "europe", "north america", "oceania", "south america")
        continentCount += if (isContinent) 1 else 0
    }

    return continentCount
}