The phrase "all but 9 die" means that all except 9 sheep have died. Therefore, the number of sheep left is 9.
