Refactor state filter. Count unreads to get feed counts rather than incrementing and decrementing.