/**
 * This function takes two sets as input and returns the count of common elements between them.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return The count of common elements between set1 and set2.
 */
fun countCommonElements(set1: Set<Any>, set2: Set<Any>): Int {

    var commonCount = 0
    
    // Iterate over every element in set1
    for (element1 in set1) {
        // Iterate over every element in set2
        for (element2 in set2) {
            // Check if the elements are equal
            if (element1 == element2) {
                // Increment the common count
                commonCount++
            }
        }
    }
    
    return commonCount
}
/**
 * This function takes two sets as input and returns the count of common elements between them.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return The count of common elements between set1 and set2.
 */
fun countCommonElements(set1: Set<Any>, set2: Set<Any>): Int {
/**
 * This function takes two sets as input and returns the count of common elements between them.
 *
 * @param set1 The first set.
 * @param set2 The second set.
 * @return The count of common elements between set1 and set2.
 */
fun countCommonElements(set1: Set<Any>, set2: Set<Any>): Int {

    var commonCount = 0
    
    // Iterate over every element in set1
    for (element1 in set1) {
        // Iterate over every element in set2
        for (element2 in set2) {
            // Check if the elements are equal
            if (element1 == element2) {
                // Increment the common count
                commonCount++
            }
        }
    }
    
    return commonCount
}