implemented datasetSize and non-polymorphic version of readBand