add task count caching with Redis