Update counters.R