adding mylib.util.Counter class which is an efficient counter.