Fix getCountNotifications func