db.profileInterest.aggregate([
{ $project: { _id: 1, fromProfile: 1, toProfile: 1, contactNoViewed:1, shortListed: 1, count: {$size: '$interestStatus'}, threeFavorites: { $slice: [ "$interestStatus", -1 ] }} },
{$match: {"threeFavorites.id": {$ne: 100}, total:{$size: '$fromProfile'}}}
]).pretty();
how to get total count of this aggregation.