Adding counter.