Count different addresses of each school.
SELECT count(DISTINCT dept_address) ,  school_code FROM department GROUP BY school_code
count different addresses of each school refers to COUNT(DISTINCT dept_address); each school is identified by school_code;