The Auto Number from Document Advanced Settings feature lets you define a custom starting number for your document, automatically increasing with each new merge. This is particularly useful for scenarios where you need a starting number other than the default value of 1, such as for orders, clients, invoices, and similar cases. Documerge provides $_auto_number which can be used inside your documents to reference document number.
Document Auto Number
The Document Advanced Settings section provides access to more complex and detailed configuration options for your document.