SQL

SELECT managerId, COUNT(managerId)
FROM Employee
WHERE managerId IS NOT null
GROUP BY managerId