Read unread message count in controller