fix delete and count in redis