added messages_count