# ee.FeatureCollection.size

Returns the number of elements in the collection.

<br />

| Usage | Returns |
|---|---|
| `FeatureCollection.size()` | Integer |

| Argument | Type | Details |
|---|---|---|
| this: `collection` | FeatureCollection | The collection to count. |

## Examples

### Code Editor (JavaScript)

```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());
```
Python setup

See the [Python Environment](https://developers.google.com/earth-engine/guides/python_install) page for information on the Python API and using
`geemap` for interactive development.

```python
import ee
import geemap.core as geemap
```

### Colab (Python)

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

display('Number of power plants in Belgium:', fc.size())
```