---
url: /process-functions/cube-dimensioncount.md
description: Returns the number of dimensions in a cube.
---

# cube.dimensionCount

Returns the number of dimensions in a cube.

```js
cube.dimensionCount(cubeName)
```

## Parameters

| Parameter | Type | Description |
|---|---|---|
| `cubeName` | `string` | The cube's name. |

## Returns

The number of dimensions, or `-1` when the cube can't be found.

## Examples

```js
const count = cube.dimensionCount("General Ledger");
```
