ee.FeatureCollection.size

Returns the number of elements in the collection.

UsageReturns
FeatureCollection.size()Integer
ArgumentTypeDetails
this: collectionFeatureCollection

The collection to count.

Examples

Code Editor (JavaScript)

// FeatureCollection of power plants in Belgium.
var fc = ee.FeatureCollection('WRI/GPPD/power_plants')
             .filter('country_lg == "Belgium"');

print('Number of power plants in Belgium', fc.size());