depends on your ToS version
but you can easily decide when it has to be restarted, use the method Numeric.resetSequence(String seqName, int startValue)
Usage:
Numeric.sequence("mySeq", 1, 1) -> sequence name = mySeq, start value 1, step 1
-> Numeric.resetSequence("mySeq", 1)
But I fear it would be complicated to use that for your needed format, better write a routine doing that for you