/**
 * Given two lists lst1 and lst2, return the number of elements in lst1 that also appear in lst2.
 *
 * @param lst1 The first list.
 * @param lst2 The second list.
 * @return The count of elements in lst1 that also appear in lst2.
 *
 * Example:
 * countElements(listOf(1, 2, 3, 4, 5), listOf(4, 5, 6, 7)) -> 2
 */
fun countElements(lst1: List<Int>, lst2: List<Int>): Int {

    var count = 0
    for (element in lst1) {
        if (element in lst2) {
            count++
        }
    }
    return count
}
/**
 * Given two lists lst1 and lst2, return the number of elements in lst1 that also appear in lst2.
 *
 * @param lst1 The first list.
 * @param lst2 The second list.
 * @return The count of elements in lst1 that also appear in lst2.
 *
 * Example:
 * countElements(listOf(1, 2, 3, 4, 5), listOf(4, 5, 6, 7)) -> 2
 */
fun countElements(lst1: List<Int>, lst2: List<Int>): Int {
/**
 * Given two lists lst1 and lst2, return the number of elements in lst1 that also appear in lst2.
 *
 * @param lst1 The first list.
 * @param lst2 The second list.
 * @return The count of elements in lst1 that also appear in lst2.
 *
 * Example:
 * countElements(listOf(1, 2, 3, 4, 5), listOf(4, 5, 6, 7)) -> 2
 */
fun countElements(lst1: List<Int>, lst2: List<Int>): Int {

    var count = 0
    for (element in lst1) {
        if (element in lst2) {
            count++
        }
    }
    return count
}