/**
 * A dancer wants to count the number of dance moves they can perform.
 * They have a list of dance moves they have mastered, represented as pairs.
 * Each pair represents a dance move, with the first element being the name of the move
 * and the second element being a boolean value indicating whether the dancer can perform it.
 *
 * Your task is to implement a function that returns the number of dance moves the dancer can perform.
 *
 * @param dancerInfo A list of pairs representing dance moves and their mastery status.
 * @return The total number of dance moves the dancer can perform.
 *
 * Example:
 * number_of_dance_moves(listOf("waltz" to true, "foxtrot" to true, "salsa" to false, "breakdance" to true)) => 3
 */
fun numberOfDanceMoves(dancerInfo: List<Pair<String, Boolean>>): Int {

    var danceMoves = 0
    for ((_, mastery) in dancerInfo) {
        if (mastery) {
            danceMoves++
        }
    }
    return danceMoves
}
/**
 * A dancer wants to count the number of dance moves they can perform.
 * They have a list of dance moves they have mastered, represented as pairs.
 * Each pair represents a dance move, with the first element being the name of the move
 * and the second element being a boolean value indicating whether the dancer can perform it.
 *
 * Your task is to implement a function that returns the number of dance moves the dancer can perform.
 *
 * @param dancerInfo A list of pairs representing dance moves and their mastery status.
 * @return The total number of dance moves the dancer can perform.
 *
 * Example:
 * number_of_dance_moves(listOf("waltz" to true, "foxtrot" to true, "salsa" to false, "breakdance" to true)) => 3
 */
fun numberOfDanceMoves(dancerInfo: List<Pair<String, Boolean>>): Int {
/**
 * A dancer wants to count the number of dance moves they can perform.
 * They have a list of dance moves they have mastered, represented as pairs.
 * Each pair represents a dance move, with the first element being the name of the move
 * and the second element being a boolean value indicating whether the dancer can perform it.
 *
 * Your task is to implement a function that returns the number of dance moves the dancer can perform.
 *
 * @param dancerInfo A list of pairs representing dance moves and their mastery status.
 * @return The total number of dance moves the dancer can perform.
 *
 * Example:
 * number_of_dance_moves(listOf("waltz" to true, "foxtrot" to true, "salsa" to false, "breakdance" to true)) => 3
 */
fun numberOfDanceMoves(dancerInfo: List<Pair<String, Boolean>>): Int {

    var danceMoves = 0
    for ((_, mastery) in dancerInfo) {
        if (mastery) {
            danceMoves++
        }
    }
    return danceMoves
}