Roshan ranked 11th from the top and 31st from the bottom in the class. How many students are there in the class?