Numbered notes

How is it possible to add note numbers to the schema example https://prosemirror.net/examples/schema/ without HTML <ol>, i.e. directly output numbers into the XHTML. E.g. the output could be:

<note><notenum>1</notenum>Do laundry</note>

And the notenum would be auto-numbered on inserts or deletes? Thanks