Hey @venky232
On Screen 1 of the app I have a button, that is Navigating me to Screen 21. Screen 22 is the one I am keeping track of.
So, onSelect the button I wrote the formula:
Navigate(Screen21);Set(ScreenCount,Value(First(L1).C1))
Where L1 is my List Name and C1 is the column that will keep track of count for the screen.

Now I will click on the button and Navigate to Screen 22.
On the OnSelect Property:
Navigate(Screen22);Set(ScreenCount,ScreenCount+1);Patch(L1,LookUp(L1,Title="1"),{C1:ScreenCount})
This will increase the variable by 1 and also patch the value in sharepoint.

Then on Next Screen I have done this:
On right side I have taken a text label and passed the ScreenCount Variable in it.

Then on Screen 23, I have used a back button to go back to Screen 22. This will also increase the count by 1 and also save the value in database.

I hope this will help. 🙂