---
url: /process-functions/cube-dimensioncount.md
description: >-
  Returns the number of dimensions present in a cube within the specified model,
  this function returns an integer value.
---

# cube.dimensionCount

Returns the number of dimensions present in a cube within the specified model, this function returns an integer value.

```js
cube.dimensionCount(cube_name)
```

#### Parameters

* `cube_name` - Name of a cube.

#### Example

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