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