tallying email counts for package flagging