Better notification counting/flagging.