Expose an endpoint to gather count of different security entities [RTFACT-24960]

external_document