Value count function for RasterLayer

Value count calculates number of pixels for each unique pixel value from the raster for a given bounding geometry (aka zonal statistics).