[19:30:09] <c4017w> Whats the most efficient way to count the number of a specific element in an array (in aggregation pipleine)? e.g. Count number of false in [true, false, false, false] -> 3
[19:35:24] <c4017w> Right now I'm thinking {$reduce: ..., $in: {%add: ["$$value", {$cond: ["$$this.Result", 0, 1]}]}}
[19:35:35] <c4017w> but that seems pretty horrible
[20:24:59] <c4017w> Is it possible to $filter and $reduce at the same time? For each item in an array i want to discard it in some cases (filter) and modify it in other cases (reduce)