# MV_COUNT

The MV_COUNT function calculates the total number of values in a multivalued expression.

## Syntax

`MV_COUNT(field)`

### Parameters

#### field

A multivalued expression.

## Examples

```esql
ROW a=["foo", "zoo", "bar"]
| EVAL count_a = MV_COUNT(a)
```

**Counting the number of element in a multivalued field**
```esql
FROM bag_of_numbers
| EVAL count = MV_COUNT(numbers)
```
