How to get item number or index in instantsearch.widgets.hits

Is there a way to get the item number or index in instantsearch.widgets.hits using a template? I want create custom html for the first 3 items returned. If item 1 use this html code, if item 2 use this, etc. Any ideas? Thx