fix repeated ID's in html output with repeated footnote markers by incrementing a repeat counter