Given the following XML
<Address>
<CountryName>France</CountryName>
</Address>
...
<Address>
<CountryName>Germany</CountryName>
</Address>
...
<Address>
<CountryName>Spain</CountryName>
</Address>
How can I count the number of distinct countries using XPath 1.0?
The list of addresses is very long and contains many distinct countries so I want to avoid having to express each one specifically.