To change the unread count we need to call setNumber and use the NotificationManager to show the notification and update the badge count.
https://developer.android.com/reference/android/app/Notification.Builder.html#setNumber(int)
How do we update the count without showing the notification, I know its possible as whatsapp does it without showing the messages after some messages have been read from the app?