What you described would seem to indicate that the number in the browser tab could be lower than the actual number. I have mine set to New Notifications, and I regularly see the number in the tab be higher than the actual number of notifications I have once I focus the tab.
I am using a laptop, but it’s set to never go to sleep, so I don’t think that would be related.