Use Display Actions/Get Index model.
Don't remember though which index is initial 0 or 1 - you can check it in debug mode.
How to use it:
Let's say you've got repetitive element:
Then if you want to get an index of specific element you do:
Single 'div' element is Ancestor Reference
Hope it'll help
For best results, use the Firefox browser..