private void collectCountFromPsicquicService(
      ServiceType service,
      String query,
      PsicquicCountResults results,
      PsicquicSimpleClient client) {

    try {

      long count = client.countByQuery(query);

      results.setPsicquicCount((int) count);
      results.setServiceResponding(true);

    } catch (IOException e) {
      log.error(
          "Problem connecting to PSICQUIC service '"
              + service.getName()
              + "': "
              + service.getRestUrl()
              + " / proxy "
              + intactViewConfiguration.getProxyHost()
              + ":"
              + intactViewConfiguration.getProxyPort(),
          e);

      results.setServiceResponding(false);
    }
  }