This may be a bit simplistic but why not simply $match on “count” > 0 at the beginning of your pipeline
{ $match: { "count ": { $gt : 0}}}
This may be a bit simplistic but why not simply $match on “count” > 0 at the beginning of your pipeline
{ $match: { "count ": { $gt : 0}}}