How many distinct students have been in detention?
select count(distinct student_id) from students_in_detention