/**
 * Given two dictionaries, find the number of common elements between them.
 *
 * @param dict1 First dictionary.
 * @param dict2 Second dictionary.
 * @return Number of common elements between the two dictionaries.
 *
 * Example:
 * val dict1 = mapOf("A" to 1, "B" to 2, "C" to 3)
 * val dict2 = mapOf("B" to 4, "C" to 5, "D" to 6)
 * countCommonElements(dict1, dict2) // Output: 2
 */
fun countCommonElements(dict1: Map<String, Int>, dict2: Map<String, Int>): Int {

    val commonElements = (dict1.keys intersect dict2.keys).size
    return commonElements
}

val dict1 = mapOf("A" to 1, "B" to 2, "C" to 3, "D" to 4, "E" to 5)
val dict2 = mapOf("C" to 6, "D" to 7, "E" to 8, "F" to 9, "G" to 10, "H" to 11)

// Find the number of common elements between dict1 and dict2.
val result = countCommonElements(dict1, dict2)
/**
 * Given two dictionaries, find the number of common elements between them.
 *
 * @param dict1 First dictionary.
 * @param dict2 Second dictionary.
 * @return Number of common elements between the two dictionaries.
 *
 * Example:
 * val dict1 = mapOf("A" to 1, "B" to 2, "C" to 3)
 * val dict2 = mapOf("B" to 4, "C" to 5, "D" to 6)
 * countCommonElements(dict1, dict2) // Output: 2
 */
fun countCommonElements(dict1: Map<String, Int>, dict2: Map<String, Int>): Int {
/**
 * Given two dictionaries, find the number of common elements between them.
 *
 * @param dict1 First dictionary.
 * @param dict2 Second dictionary.
 * @return Number of common elements between the two dictionaries.
 *
 * Example:
 * val dict1 = mapOf("A" to 1, "B" to 2, "C" to 3)
 * val dict2 = mapOf("B" to 4, "C" to 5, "D" to 6)
 * countCommonElements(dict1, dict2) // Output: 2
 */
fun countCommonElements(dict1: Map<String, Int>, dict2: Map<String, Int>): Int {

    val commonElements = (dict1.keys intersect dict2.keys).size
    return commonElements
}

val dict1 = mapOf("A" to 1, "B" to 2, "C" to 3, "D" to 4, "E" to 5)
val dict2 = mapOf("C" to 6, "D" to 7, "E" to 8, "F" to 9, "G" to 10, "H" to 11)

// Find the number of common elements between dict1 and dict2.
val result = countCommonElements(dict1, dict2)