[Home](./index.md) > [bitburner](./bitburner.md) > [Bladeburner](./bitburner.bladeburner.md) > [getCityCommunities](./bitburner.bladeburner.getcitycommunities.md)
## Bladeburner.getCityCommunities() method
Get number of communities in a city.
Signature:
```typescript
getCityCommunities(name: string): number;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| name | string | |
Returns:
number
Number of Synthoids communities in the specified city.
## Remarks
RAM cost: 4 GB
Returns the estimated number of Synthoid communities in the specified city, or -1 if an invalid city was specified.