Reduces an image collection by calculating the number of images with a valid mask at each pixel across the stack of all matching bands. Bands are matched by name.
The image collection to reduce.
// Your example goes here!
# Your example goes here!