Add pipeline license count endpoint
What does this MR do and why?
Add pipeline license count endpoint
Add endpoint for fetching license counts for a given pipeline.
Changelog: added EE: true
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #441299 (closed)