notes count caching