Returns a number equal to context size of the expression evaluation context.
number last()
The following finds the last author for each book:
book/author[last()]
XML Data Types Reference