Back to Workflows

Count the items returned by a node

Apps in this workflow

Customer Datastore (n8n training)

Share

Details

Created 1 month ago by mutedjam
eye 0 views
Description

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

The expression uses $input.all() (documented here) to fetch all incoming items at once, and .length (documented for example here) to count them.

Implement complex processes faster with n8n

red icon yellow icon red icon yellow icon