/**
 * The purpose of this exercise is to count the number of accounts with a positive balance.
 *
 * @param accounts A list of tuples where each tuple contains the account name (String) and balance (Float).
 * @return The number of accounts with a positive balance (Int).
 */
fun countAccounts(accounts: List<Pair<String, Float>>): Int {

    var count = 0
    for (account in accounts) {
        if (account.second > 0) {
            count++
        }
    }
    return count
}
/**
 * The purpose of this exercise is to count the number of accounts with a positive balance.
 *
 * @param accounts A list of tuples where each tuple contains the account name (String) and balance (Float).
 * @return The number of accounts with a positive balance (Int).
 */
fun countAccounts(accounts: List<Pair<String, Float>>): Int {
/**
 * The purpose of this exercise is to count the number of accounts with a positive balance.
 *
 * @param accounts A list of tuples where each tuple contains the account name (String) and balance (Float).
 * @return The number of accounts with a positive balance (Int).
 */
fun countAccounts(accounts: List<Pair<String, Float>>): Int {

    var count = 0
    for (account in accounts) {
        if (account.second > 0) {
            count++
        }
    }
    return count
}