# Body.getShapeCount

Returns the number of shapes in a body.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
body:getShapeCount(  )
```

[Open the full Game reference](../Game-Script-Environment/Userdata/Body.md#getshapecount)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `body` | [Body](../Game-Script-Environment/Userdata/Body.md) | The body. |

**Returns:**

| Type | Description |
| --- | --- |
| integer | The number of shapes in the body. |
