Views Exposed Filters: how to get functionality shown in this image?
You would need to configure the Select2 or Chosen JQuery component to do this.

Create the list of object with count and apply the one of the above library.

For Drupal use Select2 module