Learn how to accurately count the total number of items returned by a previous n8n node using array expressions. This fundamental n8n workflow is essential for data auditing.
Download this n8n workflow template and start using it instantly.
Users new to n8n who need to master data manipulation techniques.
Automation developers requiring precise item counts for logging or QA steps.
Anyone auditing results from data extraction, API calls, or database queries within an n8n workflow.
Teams looking for robust, reusable n8n templates for core logic.
This n8n workflow demonstrates a critical skill for any automation specialist: determining the exact number of items passed between nodes. When integrating with APIs or databases, knowing the item count is vital for data integrity checks and subsequent conditional routing. This simple but powerful n8n template uses the Set n8n node combined with a specific expression to count the total records returned by a previous n8n node, effectively transforming a list into a single metric. This approach ensures accurate flow control and auditing within your larger n8n workflows.
This automation is initiated manually for demonstration purposes, making it easy to test and adapt.
{{ $input.all().length }} to count every incoming item.itemCount, ready to be used in subsequent steps like logging or notifications within your n8n workflow. This is a highly reusable n8n template for data analysis.To deploy this n8n workflow:
When clicking "Execute Workflow" (Manual Trigger): The starting n8n trigger for this flow. It facilitates manual testing of the n8n workflow logic.
Customer Datastore (n8n training): Serves as a placeholder n8n node. Its function is to simulate fetching multiple records (getAllPeople), providing the array data necessary for the next step's count calculation.
itemCount, whose value is determined by the crucial expression ={{ $input.all().length }}. This expression precisely counts the number of input items received from the previous n8n node, effectively proving the power of n8n templates and expressions.Deploy a free, automated cold email follow-up sequence using this n8n workflow. Manage contacts in Google Sheets, fetch templates from Google Docs, and send personalized messages via the Gmail n8n node.

Use this powerful n8n workflow to automatically detect copyright infringement using ScrapeGraphAI, analyze risk, and trigger urgent legal alerts via Telegram. Leverage n8n templates for brand protection.

Use this powerful n8n workflow to automatically scrape viral Instagram Reels via Apify, analyze the video structure and content using Gemini AI, and save actionable replication guidelines in Airtable. Automate your content strategy with n8n.

Deploy this powerful n8n workflow to automatically analyze user survey submissions stored in n8n Data Tables and leverage OpenAI to deliver personalized course recommendations instantly.








































