/**
 * Write a function that counts the number of common elements between two sets.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return The number of common elements between set1 and set2.
 */
fun countCommonElements(set1: Set<Any>, set2: Set<Any>): Int {

    var count = 0

    for (element in set1) {
        if (element in set2) {
            count++
        }
    }

    return count
}
/**
 * Write a function that counts the number of common elements between two sets.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return The number of common elements between set1 and set2.
 */
fun countCommonElements(set1: Set<Any>, set2: Set<Any>): Int {
/**
 * Write a function that counts the number of common elements between two sets.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return The number of common elements between set1 and set2.
 */
fun countCommonElements(set1: Set<Any>, set2: Set<Any>): Int {

    var count = 0

    for (element in set1) {
        if (element in set2) {
            count++
        }
    }

    return count
}