Concept Flow - $size operator for array length
Start with document
Locate array field
Apply $size operator
Count elements in array
Return count as result
The $size operator counts how many elements are in a specified array field of a document and returns that number.