Docs Home / Compass / Create an Aggregation Pipeline

Count Pipeline Results Documents

You can view the number of documents outputted by your pipeline with the count results button.

About this Task

When you delete or add a document, you must manually refresh the count results value on the Aggregations tab to reflect the new document count.

Before You Begin

To count result documents, you must first create and run your aggregation pipeline. You can't count result documents while editing your pipeline.

Steps

1

Click count results

After you run your pipeline, click count results, which appears under the Run button. The count results button will update with the count of resulting documents.

Click the count results link
2

(Optional) Click the refresh icon

If you edit your pipeline, click refresh to update your document count.

Learn More