Hi,
I made a sample for you.
It has 3 scripts to create and check a counter for how many time the form has been saved.
If it was only saved once, it shows a message box.
https://acrobat.com/#d=xEOrpXZ5VRywi2W8eRVsgA
The first script is in a script object "Actions". It creates the counter.
The second script is in the formReady:Event. It checks if the current count or creates a counter in none exists.
The third script is in the preSave:Event of the root node "Formular1/form1".
It increases the counter every time the form is saved.