This is also something that depends heavily on regulations. In my home country, invoice numbers have to be sequential by law, although you can restart the numbering every year.
You can have more details here, in the section "Complete invoice":
https://sede.agenciatributaria.gob.es/Sede/en_gb/iva/factura...
https://www.boe.es/buscar/act.php?id=BOE-A-2012-14696#a6 (Spanish only)