Count the items returned by a node
n8n template #1913Summary
Use templateThis 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 here) to count them.
Hand off to your agent
Prompt
Help me set up the n8n workflow "Count the items returned by a node" (https://n8n.io/workflows/1913). It uses: Customer Datastore (n8n training). Import the template JSON into my n8n instance, list every credential I need to create, and walk me through testing it.
Paste into Claude Code and it will do the rest.
Apps and nodes
Similar workflows
NameViews
- Very quick quickstart232K
- Preparing data to be sent to a service64K
- Merge multiple runs into one8,839
- Generate dynamic contents for EMAILS or HTML pages8,004
- Rate limiting and waiting for external events5,969
- Monitor Security Advisories5,581
- Filtering and branching data4,817
- Avoid rate limiting by batching HTTP requests4,069