curl "http://en.wikipedia.org/w/api.php?action=opensearch&search=Bullwinkle&namespace=0&format=xml" -o bullwinkle.xml
returns:
?xml version="1.0"?>
<SearchSuggestion version="2.0" xmlns="http://opensearch.org/searchsuggest2">
<Query xml:space="preserve">Bullwinkle</Query>
<Section>
<Item>
<Text xml:space="preserve">Bullwinkle</Text>
<Description xml:space="preserve">Bullwinkle may refer to:</Description>
<Url xml:space="preserve">http://en.wikipedia.org/wiki/Bullwinkle</Url>
</Item>
<Item>
<Text xml:space="preserve">Bullwinkle J. Moose</Text>
<Description xml:space="preserve">Bullwinkle J. </Description>
<Url xml:space="preserve">http://en.wikipedia.org/wiki/Bullwinkle_J._Moose</Url> ...
xmlstarlet sel -N x=http://opensearch.org/searchsuggest2 -t -v "count(/SearchSuggestion/Section/@Item)" bullwinkle.xml