code: public long getIPv4PrefixCount(int prefixLength) {
  		checkSubnet(this, prefixLength);
  		if(isMultiple()) {
  			int networkSegmentIndex = getNetworkSegmentIndex(prefixLength, IPv4Address.BYTES_PER_SEGMENT, IPv4Address.BITS_PER_SEGMENT);
  			int hostSegmentIndex = getHostSegmentIndex(prefixLength, IPv4Address.BYTES_PER_SEGMENT, IPv4Address.BITS_PER_SEGMENT);
  			boolean hasPrefixedSegment = (networkSegmentIndex == hostSegmentIndex);
  			return getCount(i -> {
  				if(hasPrefixedSegment && i == networkSegmentIndex) {
  					return getSegment(i).getPrefixValueCount();
  				}
  				return getSegment(i).getValueCount();
  			}, networkSegmentIndex + 1);
  		}
  		return 1;
  	}
docs: This was added so count available as a long and not as BigInteger