Skip to content

Commit

Permalink
docs: count inputs vs elements of input (#5035)
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveitaly authored Feb 15, 2024
1 parent 709b64e commit 3dcd9ea
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/language/aggregates/count.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,12 @@ echo '1 "foo" 10.0.0.1' | zq -z 'yield count()' -
2(uint64)
3(uint64)
```

Note that the number of input values are counted, unlike the [`len` function](../functions/len.md) which counts the number of elements in a given value:
```mdtest-command
echo '[1,2,3]' | zq -z 'count()' -
```
=>
```mdtest-output
1(uint64)
```

0 comments on commit 3dcd9ea

Please sign in to comment.