To automatical add numbers to labels in elements in a diagram, add the number plugin by navigating to Extras->Plugins. In the plugin dialog click "add", type in "number", press apply, and apply again. Then refresh the page.