This adds a counter.