If the mode of the following data is 165, then what is the value of x?
| Class | 150-155 | 155-160 | 160-165 | 165-170 | 170-175 |
| Frequency | 23 | 25 | 37 | x | 28 |
Shubham ranked 19th from the top and 46th from the bottom in his class. How many students are there in his class?