For our GIS application I need to get the feature count of each layer in a map service and display them.
Right now I can do this by querying each layer individually using the returnCountOnly parameter. However when we have map services with 100+ layers, this generates a lot of HTTP requests on the map service. I can manage this by adding a delay between each request, but I fear this many requests might also skew our usage statistics of these map services.
If there is a way to get the feature count of all layers in a single HTTP request, I would like to know. If this isn't possible directly using the ArcGIS REST API, then I'm also open to other suggestions (e.g. publish a geoprocess on ArcGIS Server ?)
Thanks