Added a CountTagsOfTagName function to XML_TreeNode