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-10-19.
Nodes used (3)
- Manual Trigger
n8n-nodes-base.manualTrigger - Customer Datastore (n8n training)
n8n-nodes-base.n8nTrainingCustomerDatastore - Edit Fields (Set)
n8n-nodes-base.set
What it does
This workflow provides a simple approach to counting the items returned by a node. It uses a Set node with the Execute Once option: !image.png(fileId:704) The expression uses $input.all() (documented here) to fetch all incoming items at once, and .length (documented for example here) to count them.