XSLT » XPath Core Functions » last

Syntax:
number = last()

The last function returns the position number assigned to the last node in the current node list that is being processed by an xsl:for-each or xsl:apply-templates element. There are no arguments.