number count (node-set) [xpath]

Standard excerpt:

The count function returns the number of nodes in the argument node-set.
Examples (xslt:xml): Overview
58:8

Interactive xlab: [xsl:value-of] [xsl:template]