/**
 * Given a list of star counts, return the number of stars that are greater than or equal to a given value.
 *
 * @param starData A list containing star counts.
 * @return The number of stars that are greater than or equal to a given value.
 */
fun countStars(starData: List<Int>, value: Int): Int {

    // Define a variable to keep track of the number of stars
    var totalStars = 0

    // Iterate through each star count in the star data
    for (starCount in starData) {
        // Write a condition to check if the star count is greater than or equal to a given value
        if (starCount >= value) {
            totalStars++
        }
    }

    // Return the total number of stars
    return totalStars
}
/**
 * Given a list of star counts, return the number of stars that are greater than or equal to a given value.
 *
 * @param starData A list containing star counts.
 * @return The number of stars that are greater than or equal to a given value.
 */
fun countStars(starData: List<Int>, value: Int): Int {
/**
 * Given a list of star counts, return the number of stars that are greater than or equal to a given value.
 *
 * @param starData A list containing star counts.
 * @return The number of stars that are greater than or equal to a given value.
 */
fun countStars(starData: List<Int>, value: Int): Int {

    // Define a variable to keep track of the number of stars
    var totalStars = 0

    // Iterate through each star count in the star data
    for (starCount in starData) {
        // Write a condition to check if the star count is greater than or equal to a given value
        if (starCount >= value) {
            totalStars++
        }
    }

    // Return the total number of stars
    return totalStars
}