Working with indexes

Is there a way to get the name/position of the last child in a container?