The main purpose of the counter is to show you that you have a notification you haven’t seen yet. When you open the notification menu you would probably see what you have to take a look at - which is why it would go away.
You can always open up the menu later and check notifications