9 sheep are left.

“All but 9 die” means 9 survive.
