The count function counts the number of nodes in a node-set and returns an integer.
count
count( node-set )
node-set
The node set to be counted.
An integer representing the number of nodes in a node-set.
XPath 1.0 4.1
Supported.