/**
 * This function takes a list of historical events and a keyword, filters out the events that don't contain the
 * keyword, and returns the count of filtered events.
 *
 * @param historicalEvents List of historical events.
 * @param keyword Keyword to filter the events.
 * @return Count of historical events containing the keyword.
 */
fun filterAndCount(historicalEvents: List<String>, keyword: String): Int {

    var count = 0
    for (event in historicalEvents) {
        if (keyword in event) {
            count++
        }
    }
    return count
}
/**
 * This function takes a list of historical events and a keyword, filters out the events that don't contain the
 * keyword, and returns the count of filtered events.
 *
 * @param historicalEvents List of historical events.
 * @param keyword Keyword to filter the events.
 * @return Count of historical events containing the keyword.
 */
fun filterAndCount(historicalEvents: List<String>, keyword: String): Int {
/**
 * This function takes a list of historical events and a keyword, filters out the events that don't contain the
 * keyword, and returns the count of filtered events.
 *
 * @param historicalEvents List of historical events.
 * @param keyword Keyword to filter the events.
 * @return Count of historical events containing the keyword.
 */
fun filterAndCount(historicalEvents: List<String>, keyword: String): Int {

    var count = 0
    for (event in historicalEvents) {
        if (keyword in event) {
            count++
        }
    }
    return count
}