select department,count(distinct project_id) as projectNumfrom cms_system_project_departmentgroup by department