update event count (and badge) on startup and installation