Updated the counter.