Where is number of update/alerts stored?

I am updating my wall panel view and as it is not showing the HA sidebar, I would like to show the number of updates/repairs as it is shown in the left panel for settings.

I managed to do it but only with the number of persistent notifications, I would like to display the number of updates as well:

The orange number you see there it’s actually persistent notification, not updates.