/**
 * You are a photographer and you want to count the number of photos you have with a specific subject.
 * You are given a set of photos and a subject. Loop through the set of photos and count how many photos have the given subject.
 * Return the count.
 *
 * @param photos A set of photos.
 * @param subject The subject to search for.
 * @return The count of photos with the given subject.
 */
fun countPhotosWithSubject(photos: Set<Map<String, String>>, subject: String): Int {

    var count = 0
    for (photo in photos) {
        if ("subject" in photo && photo["subject"] == subject) {
            count++
        }
    }
    return count
}
/**
 * You are a photographer and you want to count the number of photos you have with a specific subject.
 * You are given a set of photos and a subject. Loop through the set of photos and count how many photos have the given subject.
 * Return the count.
 *
 * @param photos A set of photos.
 * @param subject The subject to search for.
 * @return The count of photos with the given subject.
 */
fun countPhotosWithSubject(photos: Set<Map<String, String>>, subject: String): Int {
/**
 * You are a photographer and you want to count the number of photos you have with a specific subject.
 * You are given a set of photos and a subject. Loop through the set of photos and count how many photos have the given subject.
 * Return the count.
 *
 * @param photos A set of photos.
 * @param subject The subject to search for.
 * @return The count of photos with the given subject.
 */
fun countPhotosWithSubject(photos: Set<Map<String, String>>, subject: String): Int {

    var count = 0
    for (photo in photos) {
        if ("subject" in photo && photo["subject"] == subject) {
            count++
        }
    }
    return count
}