9 sheep are left. The phrase "all but 9" means that 9 survived.
