Document Naming Rule Counter Change

Hello Folks,
In my custom app i created document naming rule for many doc type and push it in live cloud so what happens when my live bench update my counter has been changed and start from 0 if any there has solution regarding this please help me out.

can you please send your naming series format?