Page where we have table of Templates also displays amount of entities for each Template, the problem is that the client side makes one request for each Template whenever data is re-validated.
I believe that the back-end should be responsible for delivery what the client needs in terms of data to populate the UI on a single HTTP request, avoiding flooding our infra with too many requests.
This is a easy win, specially now that we have layered architecture for Templates module.
The ideal solution is to create a View Model
(A Data shape specific for a View/UI/Page) for a Template that also includes amount of Entities.