How many courses that do not have prerequisite?
SELECT count(*) FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq)
courses that do not have prerequisite refers to courses not present in the prereq table; count of such courses is obtained by COUNT(*);