moves saveToFile from activity to CounterModel