Update counters.