In Linguistics 101, the ratio of the number of juniors to the number of seniors is $3:2$. When seven more juniors join the class, and two seniors drop the class, the ratio of the number of juniors to the number of seniors becomes $5:2$. How many students are in the class after these changes?