HomeSoftware Heritage

search: Add visit_types_count to interface

Description

search: Add visit_types_count to interface

It enables to return the origin counts per visit type.

It also enables to get all available visit types dynamically in
other components like swh-web.

The underlying elasticsearch query has been tested on production
cluster and it is pretty efficient.

Related to T3441.