mail - preferences - dock unread count, en vervolgens kiezen tussen today / all boxes.
"The mailboxes to include in the count of unread messages (the red circle, also called a badge) shown on the Mail icon in the Dock. The count appears only if Badge app icon is selected for Mail in Notifications preferences."