add code counters