Counters can now be reset from the document instance.

[ close #3319 ]