/**
 * This function takes in two lists of genes and returns the count of common genes in both lists.
 *
 * @param geneList1 A list of genes.
 * @param geneList2 Another list of genes.
 * @return The count of common genes in both lists.
 *
 * Example:
 * countCommonGenes(listOf("gene1", "gene2", "gene3"), listOf("gene2", "gene3", "gene4")) // 2
 */
fun countCommonGenes(geneList1: List<String>, geneList2: List<String>): Int {

    var count = 0
    
    for (gene1 in geneList1) {
        for (gene2 in geneList2) {
            if (gene1 == gene2) {
                count++
            }
        }
    }
    
    return count
}
/**
 * This function takes in two lists of genes and returns the count of common genes in both lists.
 *
 * @param geneList1 A list of genes.
 * @param geneList2 Another list of genes.
 * @return The count of common genes in both lists.
 *
 * Example:
 * countCommonGenes(listOf("gene1", "gene2", "gene3"), listOf("gene2", "gene3", "gene4")) // 2
 */
fun countCommonGenes(geneList1: List<String>, geneList2: List<String>): Int {
/**
 * This function takes in two lists of genes and returns the count of common genes in both lists.
 *
 * @param geneList1 A list of genes.
 * @param geneList2 Another list of genes.
 * @return The count of common genes in both lists.
 *
 * Example:
 * countCommonGenes(listOf("gene1", "gene2", "gene3"), listOf("gene2", "gene3", "gene4")) // 2
 */
fun countCommonGenes(geneList1: List<String>, geneList2: List<String>): Int {

    var count = 0
    
    for (gene1 in geneList1) {
        for (gene2 in geneList2) {
            if (gene1 == gene2) {
                count++
            }
        }
    }
    
    return count
}