**9 sheep are left.**

The trick is in the phrase "all but 9 die" — meaning all of them die *except* 9. So 9 sheep survive.
