/**
 * This function returns the number of times an actor has won a specific award.
 *
 * @param actor The name of the actor.
 * @param awards A dictionary where the keys represent the names of the awards, and the values represent
 * lists containing the names of the actors who have won the award.
 * @return The number of times the actor has won the specified award.
 */
fun getActorAwards(actor: String, awards: Map<String, List<String>>): Int {

    var count = 0
    val award = "Academy Award"

    for ((key, value) in awards) {
        if (key == award) {
            for (actorName in value) {
                if (actorName == actor) {
                    count++
                }
            }
        }
    }

    return count
}
/**
 * This function returns the number of times an actor has won a specific award.
 *
 * @param actor The name of the actor.
 * @param awards A dictionary where the keys represent the names of the awards, and the values represent
 * lists containing the names of the actors who have won the award.
 * @return The number of times the actor has won the specified award.
 */
fun getActorAwards(actor: String, awards: Map<String, List<String>>): Int {
/**
 * This function returns the number of times an actor has won a specific award.
 *
 * @param actor The name of the actor.
 * @param awards A dictionary where the keys represent the names of the awards, and the values represent
 * lists containing the names of the actors who have won the award.
 * @return The number of times the actor has won the specified award.
 */
fun getActorAwards(actor: String, awards: Map<String, List<String>>): Int {

    var count = 0
    val award = "Academy Award"

    for ((key, value) in awards) {
        if (key == award) {
            for (actorName in value) {
                if (actorName == actor) {
                    count++
                }
            }
        }
    }

    return count
}