Gathering distinct department names and counting each

Closed as the solution was found

select department_name, count(*) as number_of_modules
from module
group by department_name

Thank you, this did pretty much exactly what I was looking for