# sm.container.totalQuantity

Returns the total number of a given item uuid in a container.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.container.totalQuantity( container, itemUuid )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.container.md#totalquantity)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `container` | [Container](../Game-Script-Environment/Userdata/Container.md) | The container. |
| `itemUuid` | [Uuid](../Game-Script-Environment/Userdata/Uuid.md) | The uuid of the item. |

**Returns:**

| Type | Description |
| --- | --- |
| integer | The quantity of the given item uuid. |
