 print("Hospitalised people: \(data.filter({ $0.value[.hospitalRemark] != nil }).count)")
 print("Censused people: \(data.filter({ $0.value[.censusPlace] != nil }).count)")
 print("Had kids at census time: \(data.filter({ $0.value[.censusKids] == "Yes" }).count)")
-*/
-
+
+print("\nThere are \(deaths.count) deaths")
+//print("There are \(deaths.filter({ $0.contains("Accident") }).count) accidental deaths")
+//print("There are \(deaths.filter({ $0.contains("Accidentally drowned") }).count) accidental drownings\n")
+//deaths.sorted().forEach({ print($0) })
+
+// outputting the data to the form the server needs
 var json : [[String:Any]] = []
 for (key,value) in data
 {

    data[person.key] = peep
}

/*
print("Total people: \(data.count)")
print("Tassie born: \(data.filter({ $0.value[.birthDate] != nil }).count)")
print("Immigrant: \(data.filter({ $0.value[.immigrationDate] != nil }).count)")

            death[.deathPermalink] = deathPerma
        }
        data[name] = death
        
        deaths.insert(deathReason)
    }
}

