Hi, if the task only is to insert numbers from 1 to x then you can play maybe with the function "Bundles > Text > Add Line Numbers to Selection" which simply applies the Bash commands "cat -n|expand -8" to the selection or the entire document.
Cheers,
Hans