This could be done, but it is far from Automatic.
You would need to do it for each paragraph. I will try to prepare and post a sample document. What is involved is using mirrored marginal
frames to hold the numbers and using a
SEQuence Field in the frame to hold the number.