check quantity of student before join