I would say, even though it is not as radically different of how to count the number of dust particles in a clean room from how to count the number of a molecule in a molar volumn or from the number of cards in a dealing shoe, the way of counting the number of tag abc is still... different for different operation context. What then is the context?
At least for my problem, I just made some changes in the java class which was generating my xml so that xml won't have the same data twice.
Why I needed the count function is that I wanted to check if there was any duplicate data in the xml.
Thank you all for your advise.
Happily living in the valley of the dried frogs with a few tiny ads.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop