I have a document that appears like this:
<Subdocument Label="Subdocument">
<Lines Label="Lines">
<Line>
<ITEM>AAA</ITEM>
</Line>
</Lines>
</Subdocument>
<Subdocument Label="Subdocument">
<Lines Label="Lines">
<Line>
<ITEM>AAA</ITEM>
</Line>
</Lines>
</Subdocument>
<Subdocument Label="Subdocument">
<Lines Label="Lines">
<Line>
<ITEM>BBB</ITEM>
</Line>
</Lines>
</Subdocument>
<Subdocument Label="Subdocument">
<Lines Label="Lines">
<Line>
<ITEM>BBB</ITEM>
</Line>
</Lines>
</Subdocument>
Is there a way to write an XPath 1.0 using the count syntax of how many times a repeating value appears in the document? The expected result would be that AAA appeared 2 times.