Use RASTER_SIZE() to compute... err... the raster size.