AcademyWorkflowsDevelopment

Count the items returned by a node

Automation builders and data teams who need a quick check of how many records a step returns.

  • Recommendedour rating
  • 3,203views on n8n
Open on n8n.io ↗

Paste it straight onto an n8n canvas with Ctrl+V or Cmd+V.

count-the-items-returned-by-a-node.json

Loading the file...

What it does

A small n8n workflow that counts how many items a node returns. It uses a Set node with the Execute Once option, and an expression that gets all incoming items and reads their length. It is a simple pattern for checking data volume during a flow.

Use cases

  1. 01Checking how many records a step returned
  2. 02Logging the item count before a bulk update
  3. 03Adding a count check while debugging a flow

Connects

Customer Datastore (n8n training)

Questions about
Count the items returned by a node.

What is Count the items returned by a node used for?

Automation builders and data teams who need a quick check of how many records a step returns. A small n8n workflow that counts how many items a node returns. It uses a Set node with the Execute Once option, and an expression that gets all incoming items and reads their length. It is a simple pattern for checking data volume during a flow.

How do I import Count the items returned by a node into n8n?

Copy the workflow JSON from this page and paste it onto the n8n canvas with Ctrl+V or Cmd+V. Then connect your credentials in each node.

Is Count the items returned by a node safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.