created unread_message_count method