What are the ids for courses that have some prerequisites?
select course_id from prereq
How many courses do not in the resulting list?
select count(*) from course where course_id not in (select course_id from prereq)