So you want a few variables (counters) that do not get reset.
Use "WebStorage". (the newer versions of C2 have LocalStorage, but I prefer using WebStorage instead, this you can get by adding a New Object then right-click to select 'Show Depreciated Objects').
WebStorage (or LocalStorage) basically saves and keeps the value... even when you restart or close the whole game and come back the next day. This is normally used for "Best Scores" and "Total Coins Collected", etc. You can use this in your Game layout as a counter. And the Menu or Levels page to reset it.