This has been happening quite a bit over the last couple days. The numbers are persistently wrong. Sometimes items will show up briefly then disappear, only to reappear a little later.
Refreshing doesn’t do anything. Sometimes switching to a different mailbox then back will fix it for a little while. Quitting and reopening fixes it for longer, but it falls back to being mismatched after a couple hours.