Count the items returned by a node
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.
What this workflow does
This workflow has 3 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Customer Datastore (n8n training).
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Customer Datastore (n8n training): get all people
- Set (Edit Fields (Set)): sets or maps fields
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (3)
- Manual Trigger
n8n-nodes-base.manualTrigger - Customer Datastore (n8n training)
n8n-nodes-base.n8nTrainingCustomerDatastore - Edit Fields (Set)
n8n-nodes-base.set
From the author
This workflow provides a simple approach to counting the items returned by a node. It uses a Set node with the Execute Once option: The expression uses $input.all() (documented here) to fetch all incoming items at once, and .length (documented for example…