Count the number of courses without prerequisites.
select count(*) from course where course_id not in (select course_id from prereq)