Sometimes Mail reports as unread messages that can't be seen.
There is a Rebuild menu option for Mail but this doesn't always achieve very much.
More useful can be manually deleting files named "Envelope Index.." from ~/Library/Mail/Vnn/MailData and restarting Mail. It will reimport everything.