Add counter caches and taks for update counters