/**
 * A farmer wants to count the number of times a particular crop appears in his field.
 * Use the 'in' statement and 'continue' to complete the function and return the count.
 *
 * @param cropList A list containing the crops in the field.
 * @param targetCrop The crop to count.
 * @return The number of times the target crop appears in the field.
 */
fun countCrops(cropList: List<String>, targetCrop: String): Int {

    var count = 0

    for (crop in cropList) {
        if (crop != targetCrop) {
            continue
        }

        count++
    }

    return count
}
/**
 * A farmer wants to count the number of times a particular crop appears in his field.
 * Use the 'in' statement and 'continue' to complete the function and return the count.
 *
 * @param cropList A list containing the crops in the field.
 * @param targetCrop The crop to count.
 * @return The number of times the target crop appears in the field.
 */
fun countCrops(cropList: List<String>, targetCrop: String): Int {
/**
 * A farmer wants to count the number of times a particular crop appears in his field.
 * Use the 'in' statement and 'continue' to complete the function and return the count.
 *
 * @param cropList A list containing the crops in the field.
 * @param targetCrop The crop to count.
 * @return The number of times the target crop appears in the field.
 */
fun countCrops(cropList: List<String>, targetCrop: String): Int {

    var count = 0

    for (crop in cropList) {
        if (crop != targetCrop) {
            continue
        }

        count++
    }

    return count
}