No new mail notification at apple mail dock icon when rules apply
Mail does only look at one or all mailboxes for the count, it is set in Mail->Preferences->General, the field "Doc unread count"

You can make it look at a more complex setup by using Smart mailboxes.

In this case I would create a new Smart mailbox say Counter which would contain rules for any of Mailbox is Inbox and the destination folder.