A farmer has seventeen sheep. All but nine of them die. How many sheep does he have left?

Nine.

How many sides does a pentagon have?