Using the index() function may give you what you want.
If this isn't what you're looking for, would you be able to go into more detail about the desired outcome?
Thank you for your information. Size() is capturing the correct data. Even index() is doing good.