```coffeescript
index = parent.data('hasManyIndex') || parent.find('fieldset').length
parent.data('hasManyIndex', ++index);
```