In psychology 101, the ratio of the number of girls to the number of boys is $3:1$. after one girl drops the class and three more boys sign up, the ratio of the number of girls to the number of boys becomes $5:2$. how many students are in the class after these changes?