Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request.  # noqa: E501
### Context:
CREATE TABLE department (school_code VARCHAR, dept_name VARCHAR)
### Question:
Find the number of different departments in each school whose number of different departments is less than 5.
### Answer:
SELECT COUNT(DISTINCT dept_name), school_code FROM department GROUP BY school_code HAVING COUNT(DISTINCT dept_name) < 5