Count total and matched documents in MongoDB aggregation pipeline? I have the following MongoDB aggregation pipeline: