user12920775 :
The query I wrote works perfectly the only problem is that I need to get the count of the rows instead of the full list.
For example: here is my output and my query:
PSK :
You can change your query like following.
select count(*) totalcount from
(
select count(employeeid) ct
from eventmanagment
group by employeeid
having count(*) > 5
)t