You seem to have reached voice control (systemprefs>Accessibility>Enable Voice Control) for dictation. This will activate the microphone icon. Then, if you select Mail>view, the little numbers in the side bar appear.
Reverse the process to prevent dictation.
See the excellent book The Missing Manual, macOS Catalina by David Pogue, Chap 7. Earlier OS have their own edition of the book.