new Counter<> template