Added count up and reset functions.