# MV_COUNT

The MV_COUNT function converts a multivalued expression into a single valued column that contains the count of values in the multivalued field.

## Syntax

`MV_COUNT(field)`

### Parameters

#### field

The multivalue expression to be counted.

## Examples

Counts how many values are present in the multivalued column `a` and stores the result in a new column `count_a`:

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