added total count to cache model