code: public int ENgetcount( Components countcode ) throws EpanetException {
          int[] count = new int[1];
          int error = epanet.ENgetcount(countcode.getCode(), count);
          checkError(error);
          return count[0];
      }
docs: Retrieves the number of network components of a specified type.
  
  @param countcode {@link Components} code .
  @return number of countcode components in the network.
  @throws EpanetException