Skip to content

count

Counts the events or non-null grouped values.

count(xs:list) -> int

The count function returns the number of non-null values in xs. When used without arguments, it counts the total number of events.

The values to count.

from {x: 1}, {x: null}, {x: 2}
summarize total=count(x)
{total: 2}

count_distinct