Adding counter cache behavior