Simple Counter Class works on Arduino 1.0+