/**
 * In this exercise, you are given a list of items and a keyword. Your task is to complete the code to count the number
 * of items in the list that contain the given keyword using list comprehension and iterating over the list.
 *
 * @param items A list of strings representing the items to search through.
 * @param keyword A string representing the keyword to search for.
 * @return An integer representing the count of items that contain the keyword.
 */
fun countItemsWithKeyword(items: List<String>, keyword: String): Int {

    // Complete the code using list comprehension and iterating over the list to count the items with the keyword
    // Use a single line of code inside the square brackets after "count =" to complete the task.
    return items.count { it.toLowerCase().contains(keyword.toLowerCase()) }
}
/**
 * In this exercise, you are given a list of items and a keyword. Your task is to complete the code to count the number
 * of items in the list that contain the given keyword using list comprehension and iterating over the list.
 *
 * @param items A list of strings representing the items to search through.
 * @param keyword A string representing the keyword to search for.
 * @return An integer representing the count of items that contain the keyword.
 */
fun countItemsWithKeyword(items: List<String>, keyword: String): Int {
/**
 * In this exercise, you are given a list of items and a keyword. Your task is to complete the code to count the number
 * of items in the list that contain the given keyword using list comprehension and iterating over the list.
 *
 * @param items A list of strings representing the items to search through.
 * @param keyword A string representing the keyword to search for.
 * @return An integer representing the count of items that contain the keyword.
 */
fun countItemsWithKeyword(items: List<String>, keyword: String): Int {

    // Complete the code using list comprehension and iterating over the list to count the items with the keyword
    // Use a single line of code inside the square brackets after "count =" to complete the task.
    return items.count { it.toLowerCase().contains(keyword.toLowerCase()) }
}