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