<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def setOrderedRegisterNumbers(order, start):
 """Given an order of nodes, assign register numbers. """

    for i, node in enumerate(order):
        node.reg.n = start + i
    return start + len(order)