Refactor UI to use hosts counter service better
#24782 introduces host count service, that can be used to clean up some views handling host count.
Fixes #24783 - Refactor hosts count
This takes advantage of the new HostCounter service to simplify and
unify host counts throughout the application. A cache was also added to
the service to speed up responses when multiple counters are created for
the same association in quick succession.