diff --git a/python/ee/imagecollection.py b/python/ee/imagecollection.py index 0aa9512ec..c9e72bf71 100644 --- a/python/ee/imagecollection.py +++ b/python/ee/imagecollection.py @@ -615,7 +615,15 @@ def And(self) -> image.Image: return apifunction.ApiFunction.call_(REDUCE_PREFIX + '.and', self) - # count comes from Collection, not reduce.count. + def count(self) -> image.Image: + """Returns an image with the number of images in the collection. + + 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. + """ + + return apifunction.ApiFunction.call_(REDUCE_PREFIX + '.count', self) def max(self) -> image.Image: """Returns an image with the maximum value of the collection.