---
title: "Use the COUNTALLOF Function to Count Items in a Block"
slug: "countallof-function"
description: "Learn to use COUNTALLOF to count all Dimension values in a Block, even when using multiple Dimensions."
updated: 2025-05-28T10:24:29Z
published: 2025-08-22T12:00:18Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://kb.pigment.com/llms.txt
> Use this file to discover all available pages before exploring further.

# COUNTALLOF function

## ​​​Description

Returns the number of items of a Block.

## Syntax

`COUNTALLOF(Block)`

## Arguments

| Argument | Type | Dimensions | Description |
| --- | --- | --- | --- |
| *Block* (required) | Any | Any |  |

## Returns

| Type | Dimensions |
| --- | --- |
| Integer | No Dimension |

## Examples

Employee is a Dimension List:

| Formula | Result | Description |
| --- | --- | --- |
| `COUNTALLOF(Employee)` | 4 | The Employee List contains 4 items. |
| `COUNTALLOF(Employee.Name)` | 4 | The Property Name contains 4 items. |

## See also

Related articles: [COUNTALLOF,](/v1/docs/countallof-function) [COUNTOF,](/v1/docs/countof-function) [COUNTBLANKOF](/v1/docs/countblankof-function)

> [!TIP]
> **More of a hands-on learner?**
> 
> Talk to your Customer Success Manager about downloading the Functions and Modifiers in Pigment Application into your workspace. It includes examples of every formula and modifier in Pigment!

<style> p[data-block-id] {font-size:1rem;} ul li p[data-block-id] {margin-bottom: 0;} ul[data-type="taskList"] li div p[data-block-id] {margin-bottom: 0;} ol li p[data-block-id] {margin-bottom: 0;} table tbody th p[data-block-id] { margin-bottom: 0;} blockquote p[data-block-id] {margin-bottom: 0 !important;} &nbsp;p[data-block-id]:empty::after {content: "\00A0";} </style>
