Rashmi ranks seventeenth from the top and forty-ninth from the bottom in a class. How many students are there in the class?