Standard: http://www.w3.org/TR/xpath#function-count

number count (node-set)

Standard excerpt:

The count function returns the number of nodes in the argument node-set.