I'm trying to count the number of pixels that are masked by the cloud mask of the image collection given by the Earth Engine dataset. I have clipped my collection with a ROI and now I want to keep the images with 10% or less of clouds (masked pixels). By now, I am only able to count them for a single image but not for the entire collection.
I am now using this code for one image but I am not able to reproduce this for the entire collection.
var Peyto_pixelscount = Peytoclip.first().select('ALBEDO').reduceRegion({
reducer: ee.Reducer.count(),
geometry: Peyto_glacier.geometry(),
scale: 30,
maxPixels: 1e9
});
print(Peyto_pixelscount)