Fix updateCounts call