count elements in xml using objective c

I've got an XML file and I need to count how many times the element appears in it using Objective-C. How should I do this?\[code\] <?xml version="1.0" encoding="ISO-8859-1"?><residents> <resident id="1"> <name> <first>David</first> <last>Dollar</last> </name> </resident> <resident id="2"> <name> <first>Michael</first> <last>Nipp</last> </name> </resident>\[/code\]etc...
 
Back
Top