<xsl:value-of select="count(//customers/customer)"/>
This XPath query prints a number corresponding with the number of customer elements in the customers entity.
The XSLT function count(a) returns a numerical count of all nodes in the node-set argument a.
The example output would be: