add function sub_numstudent