@Override
	public byte[] readBytes(long index, long longCount) throws IOException {
		if (longCount >= Integer.MAX_VALUE) {
			throw new IOException("Unable to read " + longCount + " bytes at once");
		}
		ensureBounds(index, longCount);

		int count = (int) longCount;
		byte[] result = new byte[count];
		int bytesRead = readBytes(index, result, 0, count);
		if (bytesRead != count) {
			throw new IOException("Unable to read " + count + " bytes at " + index);
		}
		return result;
	}
Return the number of ranges.  Adjacent ranges that were merged
will count as a single range.

@return number of ranges
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/RangeMappedByteProvider.java