Add loop counters