I would like to create a variable which adds a number (+1) to each new data that's added after reloading the script. I am working with a external database which is updated automatically.
So data included in the first load looks like this:
Data
Counter
ABC
1
ABC
1
ABC
1
And then IF new data is added after reloading the script it automatically should look like this:
Data
Counter
ABC
1
ABC
1
ABC
1
ABC
2
ABC
2
It is not a problem if a number is skipped when the reload does not provide new data.