/**
 * Given two lists, this function returns the count of common values between the two lists.
 *
 * @param list1 First list of values
 * @param list2 Second list of values
 * @return Count of common values between list1 and list2
 */
fun countIntersectionValues(list1: List<Any>, list2: List<Any>): Int {

    // Create an empty set to store common values
    val commonValues = mutableSetOf<Any>()

    // Iterate over each element in list1
    for (value in list1) {
        // Check if the value exists in list2 using a boolean expression
        if (value in list2) {
            // Add the value to the set if it exists in both lists
            commonValues.add(value)
        }
    }

    // Return the count of common values
    return commonValues.size
}
/**
 * Given two lists, this function returns the count of common values between the two lists.
 *
 * @param list1 First list of values
 * @param list2 Second list of values
 * @return Count of common values between list1 and list2
 */
fun countIntersectionValues(list1: List<Any>, list2: List<Any>): Int {
/**
 * Given two lists, this function returns the count of common values between the two lists.
 *
 * @param list1 First list of values
 * @param list2 Second list of values
 * @return Count of common values between list1 and list2
 */
fun countIntersectionValues(list1: List<Any>, list2: List<Any>): Int {

    // Create an empty set to store common values
    val commonValues = mutableSetOf<Any>()

    // Iterate over each element in list1
    for (value in list1) {
        // Check if the value exists in list2 using a boolean expression
        if (value in list2) {
            // Add the value to the set if it exists in both lists
            commonValues.add(value)
        }
    }

    // Return the count of common values
    return commonValues.size
}