Raster.count or ds.rst.count# abstract property RasterBase.count: int# Count of bands loaded in memory if they are, otherwise the one on disk.