Support for the XPath count() function.