fix: Get messages count on resume