Carrot reference
Methods
.count()
returns the number of items in a sequence docid\ jg4itlqwafzlparttfo67 or list docid\ xwh cukhj9waqaefb7h71 syntax count() returns the total number of items in the sequence or list count{expression} returns the number of items in the sequence or list where the expression evaluates to a truthy value examples \[1, 2, 3] count() returns 3 \[1, 2, 3] count{it >= 2} returns 2 db job find{dept\ engineering} count() returns the number of jobs in the engineering department db job find{dept\ engineering} count{basecomp > 100000} returns the number of jobs in the engineering department where base compensation is at least $100k