counter now counts up and now, thanks to class code review