I am not sure why you are creating a separate Endpoint just to get count 
But nvm, in strapi you can get the count of the records by using those methods.
Check the documents: Bulk Operations | Strapi Documentation ,
Bulk Operations | Strapi Documentation
OR
by using raw query too.
1 Like