Writer: Find a simple text string & at end add incremental numbers

Greetings

I am trying to find all instances of specific string such as “This Header Here” and adding incremental numbers to each in the text document that would replace the above string with:

This Header Here #1
This Header Here #2
This Header Here #libreoffice-503

This would happen to all instances of the above string ant the numbers would increase with each by 1.

How would I do this?

Thanks in advance!

Please edit your question (don’t use a comment so that all information is at the same location) to improve the description of your goal.

Are the paragraphs some sort of heading, i.e. like chapter titles?

Are you trying to number figure/table/… captions, something similar to “Figure x: landscape around town”?
This latter case can be solved with a field insertion of a dedicated number range.

As always, mention OS name, LO version and save format. For better advice, tell if you’re familiar with styles.