adding function for calculation total students in 1 room