/**
 * A farmer wants to count his inventory of different crops and determine the total.
 *
 * @param farmerInventory A dictionary representing the farmer's inventory of crops,
 * where the keys are the crop names (String) and the values are the quantities (Int) of each crop.
 * @return The total number of crops in the farmer's inventory.
 */
fun countCrops(farmerInventory: Map<String, Int>): Int {

    var totalCrops = 0

    // Loop through the farmer's inventory
    for ((_, quantity) in farmerInventory) {
        totalCrops += quantity
    }

    return totalCrops
}
/**
 * A farmer wants to count his inventory of different crops and determine the total.
 *
 * @param farmerInventory A dictionary representing the farmer's inventory of crops,
 * where the keys are the crop names (String) and the values are the quantities (Int) of each crop.
 * @return The total number of crops in the farmer's inventory.
 */
fun countCrops(farmerInventory: Map<String, Int>): Int {
/**
 * A farmer wants to count his inventory of different crops and determine the total.
 *
 * @param farmerInventory A dictionary representing the farmer's inventory of crops,
 * where the keys are the crop names (String) and the values are the quantities (Int) of each crop.
 * @return The total number of crops in the farmer's inventory.
 */
fun countCrops(farmerInventory: Map<String, Int>): Int {

    var totalCrops = 0

    // Loop through the farmer's inventory
    for ((_, quantity) in farmerInventory) {
        totalCrops += quantity
    }

    return totalCrops
}