/**
 * You are given two lists, list1 and list2. You need to find the number of common values between the two lists.
 *
 * @param list1 A list of values.
 * @param list2 Another list of values.
 * @return An integer representing the number of common values between the two lists.
 */
fun countCommonValues(list1: List<Any>, list2: List<Any>): Int {

    var count = 0

    val uniqueList1 = list1.toSet()
    val uniqueList2 = list2.toSet()

    for (value in uniqueList1) {
        if (value in uniqueList2) {
            count++
        }
    }

    return count
}
/**
 * You are given two lists, list1 and list2. You need to find the number of common values between the two lists.
 *
 * @param list1 A list of values.
 * @param list2 Another list of values.
 * @return An integer representing the number of common values between the two lists.
 */
fun countCommonValues(list1: List<Any>, list2: List<Any>): Int {
/**
 * You are given two lists, list1 and list2. You need to find the number of common values between the two lists.
 *
 * @param list1 A list of values.
 * @param list2 Another list of values.
 * @return An integer representing the number of common values between the two lists.
 */
fun countCommonValues(list1: List<Any>, list2: List<Any>): Int {

    var count = 0

    val uniqueList1 = list1.toSet()
    val uniqueList2 = list2.toSet()

    for (value in uniqueList1) {
        if (value in uniqueList2) {
            count++
        }
    }

    return count
}