List the subject ID, name of subject and the number of courses available for each subject in ascending order of the course counts.
select t1.subject_id, t2.subject_name, count(*) from courses as t1 join subjects as t2 on t1.subject_id = t2.subject_id group by t1.subject_id order by count(*) asc