I must not be being very clear.
Yes, this can be done. You'll need to use a field for a counter - I think the original document I directed you to does that?
You'll need to use multiple filters, like I mentioned in another earlier post - like group/repeatingGroup[ID = 1][1]/field
So, the filter for the correct ID, and then your counter.