Set notification number attribute for messages