AutomationFlowsGeneral › Count Items from Node in n8n (Workflow)

Count Items from Node in n8n (Workflow)

Original n8n title: Count the Items Returned by a Node

Count The Items Returned By A Node. Uses manualTrigger, n8nTrainingCustomerDatastore. Event-driven trigger; 3 nodes.

Event trigger★☆☆☆☆ complexity3 nodesN8N Training Customer Datastore
General Trigger: Event Nodes: 3 Complexity: ★☆☆☆☆ Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "nodes": [
    {
      "id": "41e0d0a9-9bd4-4ece-a204-5e1bf507b0eb",
      "meta": {
        "instanceId": "cb9c144f2050b3f9b30bf379399398f9061341e3665eb2faf2b1092a42b38b14"
      },
      "name": "When clicking \"Execute Workflow\"",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        820,
        400
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "aa373efa-d493-44cd-91ee-e07630309675",
      "name": "Customer Datastore (n8n training)",
      "type": "n8n-nodes-base.n8nTrainingCustomerDatastore",
      "position": [
        1040,
        400
      ],
      "parameters": {
        "operation": "getAllPeople"
      },
      "typeVersion": 1
    },
    {
      "id": "29555ae0-ad6c-4888-8865-c1e097b3b44e",
      "name": "Set",
      "type": "n8n-nodes-base.set",
      "position": [
        1260,
        400
      ],
      "parameters": {
        "values": {
          "number": [
            {
              "name": "itemCount",
              "value": "={{ $input.all().length }}"
            }
          ]
        },
        "options": {},
        "keepOnlySet": true
      },
      "executeOnce": true,
      "typeVersion": 1
    }
  ],
  "connections": {
    "When clicking \"Execute Workflow\"": {
      "main": [
        [
          {
            "node": "Customer Datastore (n8n training)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Customer Datastore (n8n training)": {
      "main": [
        [
          {
            "node": "Set",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Count The Items Returned By A Node. Uses manualTrigger, n8nTrainingCustomerDatastore. Event-driven trigger; 3 nodes.

Source: https://github.com/Zie619/n8n-workflows — original creator credit. Request a take-down →

More General workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

General

Very Quick Quickstart. Uses n8nTrainingCustomerDatastore, stickyNote, manualTrigger. Event-driven trigger; 6 nodes.

N8N Training Customer Datastore
General

Very quick quickstart. Uses n8nTrainingCustomerDatastore, stickyNote, manualTrigger. Event-driven trigger; 6 nodes.

N8N Training Customer Datastore
General

Items length test. Uses stopAndError, n8nTrainingCustomerDatastore. Event-driven trigger; 26 nodes.

Stop And Error, N8N Training Customer Datastore
General

Rate Limiting And Waiting For External Events. Uses manualTrigger, stickyNote, noOp, n8nTrainingCustomerDatastore. Event-driven trigger; 13 nodes.

N8N Training Customer Datastore, N8N Training Customer Messenger
General

Workflow 1749. Uses n8nTrainingCustomerDatastore, n8nTrainingCustomerMessenger. Event-driven trigger; 13 nodes.

N8N Training Customer Datastore, N8N Training Customer Messenger