/**
 * This function 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 the sets
 */
fun countCommonElements(set1: Set<Any>, set2: Set<Any>): Int {

    var count = 0
    
    // Iterate over each element in set1
    for (element1 in set1) {
        // Check if the element is also in set2
        if (element1 in set2) {
            count++
        }
    }
    
    return count
}
/**
 * This function 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 the sets
 */
fun countCommonElements(set1: Set<Any>, set2: Set<Any>): Int {
/**
 * This function 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 the sets
 */
fun countCommonElements(set1: Set<Any>, set2: Set<Any>): Int {

    var count = 0
    
    // Iterate over each element in set1
    for (element1 in set1) {
        // Check if the element is also in set2
        if (element1 in set2) {
            count++
        }
    }
    
    return count
}