Roshan ranked 11 th from the top and thirty one from the bottom in a class. How many students are there in the class?