Click on the bell in the upper right corner. Now an overview of the messages you have received recently appears. Click here on "View all". On the left side you will find the field "Messages" click on it. Now you get an overview of direct messages. 


To make the number disappear you have to click directly into the reply field with the mouse.