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

number position ()

Standard excerpt:

The position function returns a number equal to the context position from the expression evaluation context.