/**
 * Return the count of elements in the list that intersect with the given selection.
 *
 * @param selection A list of elements to check intersection with.
 * @param lst The list in which to count the intersection.
 * @return The count of elements that intersect with the selection.
 *
 * Example:
 * intersectCount(listOf(1, 2, 3), listOf(3, 4, 5, 6)) // 1
 * intersectCount(listOf("apple", "banana", "orange"), listOf("orange", "kiwi", "mango")) // 1
 * intersectCount(listOf("a", "b", "c"), listOf("x", "y", "z")) // 0
 */
fun intersectCount(selection: List<Any>, lst: List<Any>): Int {

    val intersection = selection.intersect(lst)
    return intersection.size
}
/**
 * Return the count of elements in the list that intersect with the given selection.
 *
 * @param selection A list of elements to check intersection with.
 * @param lst The list in which to count the intersection.
 * @return The count of elements that intersect with the selection.
 *
 * Example:
 * intersectCount(listOf(1, 2, 3), listOf(3, 4, 5, 6)) // 1
 * intersectCount(listOf("apple", "banana", "orange"), listOf("orange", "kiwi", "mango")) // 1
 * intersectCount(listOf("a", "b", "c"), listOf("x", "y", "z")) // 0
 */
fun intersectCount(selection: List<Any>, lst: List<Any>): Int {
/**
 * Return the count of elements in the list that intersect with the given selection.
 *
 * @param selection A list of elements to check intersection with.
 * @param lst The list in which to count the intersection.
 * @return The count of elements that intersect with the selection.
 *
 * Example:
 * intersectCount(listOf(1, 2, 3), listOf(3, 4, 5, 6)) // 1
 * intersectCount(listOf("apple", "banana", "orange"), listOf("orange", "kiwi", "mango")) // 1
 * intersectCount(listOf("a", "b", "c"), listOf("x", "y", "z")) // 0
 */
fun intersectCount(selection: List<Any>, lst: List<Any>): Int {

    val intersection = selection.intersect(lst)
    return intersection.size
}