I'm trying to count the number of nodes that contain a certain word. How can I count the number of total matches?
<Fruit>
<type>apple</type>
<type>orange</type>
<type>apple</type>
<type>apple</type>
</Fruit>
So the count for apple is 3. How do I get it. I've been able to get the information, and after normalizing I can print out:
<text>apple orange apple apple</text>