Log in to your inbox and click on the gear icon at the top right of the Gmail interface. Then click on All Settings.
On the Gmail settings page, go to the Advanced settings section and scroll down. At the very bottom, in the Unread Message Icon line, click Enable and then click Save Changes to keep your new settings.
It is displayed directly on the Gmail icon, in the email tab open in your web browser.