Added constructor to Counter