/**
 * Given a list of Social Worker's members, return the count of inactive members.
 *
 * @param members A list of dictionaries representing the Social Worker's members.
 * @return The count of inactive members.
 *
 * Example:
 * val members = listOf(
 *     mapOf("name" to "John", "active" to true),
 *     mapOf("name" to "Alice", "active" to false),
 *     mapOf("name" to "Bob", "active" to false)
 * )
 * getInactiveMembersCount(members) // Output: 2
 */
fun getInactiveMembersCount(members: List<Map<String, Any>>): Int {

    var count = 0
    for (member in members) {
        if (member["active"] == false) {
            count++
        }
    }
    return count
}
/**
 * Given a list of Social Worker's members, return the count of inactive members.
 *
 * @param members A list of dictionaries representing the Social Worker's members.
 * @return The count of inactive members.
 *
 * Example:
 * val members = listOf(
 *     mapOf("name" to "John", "active" to true),
 *     mapOf("name" to "Alice", "active" to false),
 *     mapOf("name" to "Bob", "active" to false)
 * )
 * getInactiveMembersCount(members) // Output: 2
 */
fun getInactiveMembersCount(members: List<Map<String, Any>>): Int {
/**
 * Given a list of Social Worker's members, return the count of inactive members.
 *
 * @param members A list of dictionaries representing the Social Worker's members.
 * @return The count of inactive members.
 *
 * Example:
 * val members = listOf(
 *     mapOf("name" to "John", "active" to true),
 *     mapOf("name" to "Alice", "active" to false),
 *     mapOf("name" to "Bob", "active" to false)
 * )
 * getInactiveMembersCount(members) // Output: 2
 */
fun getInactiveMembersCount(members: List<Map<String, Any>>): Int {

    var count = 0
    for (member in members) {
        if (member["active"] == false) {
            count++
        }
    }
    return count
}