/**
 * This function takes a list of stars in a constellation and counts the number of stars with a magnitude
 * greater than 4.5.
 *
 * @param constellation a list of star objects, where each object contains the name and magnitude of the star
 * @return the total number of stars with magnitude greater than 4.5
 */
fun countStarsInConstellation(constellation: List<Map<String, Any>>): Int {

    // Complete the code below to count the stars with magnitude greater than 4.5 using list comprehension
    val count = constellation.count { it["magnitude"] as Double > 4.5 }

    return count
}
/**
 * This function takes a list of stars in a constellation and counts the number of stars with a magnitude
 * greater than 4.5.
 *
 * @param constellation a list of star objects, where each object contains the name and magnitude of the star
 * @return the total number of stars with magnitude greater than 4.5
 */
fun countStarsInConstellation(constellation: List<Map<String, Any>>): Int {
/**
 * This function takes a list of stars in a constellation and counts the number of stars with a magnitude
 * greater than 4.5.
 *
 * @param constellation a list of star objects, where each object contains the name and magnitude of the star
 * @return the total number of stars with magnitude greater than 4.5
 */
fun countStarsInConstellation(constellation: List<Map<String, Any>>): Int {

    // Complete the code below to count the stars with magnitude greater than 4.5 using list comprehension
    val count = constellation.count { it["magnitude"] as Double > 4.5 }

    return count
}