Support non-collection routes in ApiApplication

Currently, we assume all routes are either collection routes or the `/health/` route.
There is also `collections.Counter`, but I'm not sure if it's faster than `.count`.