Added saving and loading of the CounterMaster singleton in MainActivity.