Update countingLoops