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