Given the task definition and input, reply with output. You are given a math word problem and you are supposed to make use of mathematical concepts like probability, combinatorics, linear equations, sequences/series, or simple operators like addition, subtraction, division, or multiplication to answer the given question. Choose the best option from the 5 given options and report that option.

Question: Each shelf of a bookcase contained 11 books. If the librarian took out 32 books and rearranged the remaining books so that all shelves but the last one contained 7 books and that last shelf contained 3 books, how many shelves does the bookcase have?

Option A: 5

Option B: 6

Option C: 7

Option D: 8

Option E: 9
Option C