Continuous numbers

Is it possible to write continuous numbers in Revit using Dynamo as shown below. if yes please advise how.

you could achieve this in many different ways
here is one:

Ok, problem is we don’t know the number of elements to be annotated.

you would count them…