Badge count and notification are displayed only for messages sent by people set with alerts.
On mobile, tap the hamburger icon in the upper-left corner of the “Messages” page -> the “Settings” icon -> “Message Notifications” -> “Only receive special messages”.