Finding the number of seats taken in a movie theater