if the notification already exists, take it, read its text and then update it to "N notifications: foo, bar, ...". This is similar to what the Gmail client will do on Android when you receive 1 email in a few.
No, it is not. Gmail already has this information in the database. He does not need to "capture [notice], read its text."
In addition, what you want is impossible.
Do I need to manage the counter elsewhere and have it reset when the user rejects the notification?
Yes.
Is there no way to read an existing one?
.