Made notificationCount a global helper.