Can Mail count unread messages (for the Dock icon) from only some of my accounts?
Do a SmartMailbox with the folders from which you want the counts to come, and then select that in Mail's General settings --> "Dock unread count" (it's the fourth drop down list)