LineItem-Counter for Invoices?

Hi all,

i added a custom product-field named “Position” for my invoices. However, it’s not necessary to be stored in the database, as i only want this field in the pdf as an dynamic counter, delivering the actual line number for each lineitem.
How can i achieve this?

(please excuse my bad english)

Sorry, I don’t think it’s possible