For every student who is registered for some course, how many courses are they registered for?
select t1.student_id, count(*) from students as t1 join student_course_registrations as t2 on t1.student_id = t2.student_id group by t1.student_id