Set the notification number based on message count

Change-Id: I1112fb1a837c968724cc9cc88883488edea74916