Rohan ranks seventh from the top and twenty-sixth from bottom in a class. How many students are there in the class?