* @return the count of the instances of the given collection
   *
   * @throws IOException if a data communication error occurs
   * @throws CycApiException if the api request results in a cyc server error
   */
  public int countAllInstances_Cached(CycFort collection, CycObject mt)
          throws IOException, CycApiException {
    Integer countAllInstances = countAllInstancesCache.get(collection);

    if (countAllInstances != null) {
      return countAllInstances;
    }

    final int answer = countAllInstances(collection, makeELMt(mt));
    countAllInstancesCache.put(collection, answer);

    return answer;
  }