You can number segments via the Renumber ... command in the context menu. A numbered segment has an XML attribute set to a numerical value. The Numbering/Renumbering dialog allows you to choose the attribute name, the start and increment values and the target segments.