/**
 * This function takes a list of inflation data for different countries and a threshold value.
 * It returns the number of countries with inflation rates above the threshold.
 *
 * @param inflationData A list containing the inflation rates for different countries.
 * @param threshold The threshold value to compare the inflation rates against.
 * @return The number of countries with inflation rates above the threshold.
 */
fun countInflation(inflationData: List<Double>, threshold: Double): Int {

    var count = 0
    for (inflationRate in inflationData) {
        if (inflationRate > threshold) {
            count++
        }
    }
    return count
}
/**
 * This function takes a list of inflation data for different countries and a threshold value.
 * It returns the number of countries with inflation rates above the threshold.
 *
 * @param inflationData A list containing the inflation rates for different countries.
 * @param threshold The threshold value to compare the inflation rates against.
 * @return The number of countries with inflation rates above the threshold.
 */
fun countInflation(inflationData: List<Double>, threshold: Double): Int {
/**
 * This function takes a list of inflation data for different countries and a threshold value.
 * It returns the number of countries with inflation rates above the threshold.
 *
 * @param inflationData A list containing the inflation rates for different countries.
 * @param threshold The threshold value to compare the inflation rates against.
 * @return The number of countries with inflation rates above the threshold.
 */
fun countInflation(inflationData: List<Double>, threshold: Double): Int {

    var count = 0
    for (inflationRate in inflationData) {
        if (inflationRate > threshold) {
            count++
        }
    }
    return count
}