Simple stat counter in dart