using group by:
select
distinct pd.PersonDepartmentName,
count(p.PersonID) as CountPersonWorkPlace
from Person p
left join PersonWorkPlace pwp on p.PersonID = pwp.PersonID
left join PersonDepartament pd on pwp.PersonDepartamentID = pd.PersonDepartamentID
group by pd.PersonDepartmentName
order by CountPersonWorkPlace asc;
using analytical functions (window functions):
select
distinct pd.PersonDepartmentName,
count(p.PersonID) over(partition by pd.PersonDepartmentName) as CountPersonWorkPlace
from Person p
left join PersonWorkPlace pwp on p.PersonID = pwp.PersonID
left join PersonDepartament pd on pwp.PersonDepartamentID = pd.PersonDepartamentID
order by CountPersonWorkPlace asc;