In my opinion better way is to put this line into function parserDidEndDocument:
We don't have to show array count every time when we add new element.