How to use BetterTouchTool to show Mail.app unread count in touch bar
BetterTouchTool has a "widget" option for the touch bar, and one of the options is to display the output of an AppleScript program. You could write a script that gets the number of unread emails (another question has some code for doing that here)