Count List Items
Count the number of items in any list to track quantities and build conditional logic.
Count List Items returns the total number of items in a list. Use this to check list sizes, build conditional logic, or track quantities in your workflows.
When to Use It
- Check how many campaigns were returned from an API call
- Count URLs from sitemap extraction before processing
- Verify list sizes before starting loops
- Build conditional workflows based on quantity thresholds
Inputs
Field | Type | Required | Description |
---|---|---|---|
List | List | Yes | The list you want to count items from |
Outputs
Output | Description |
---|---|
Count | The number of items in the list |
Credit Cost
Free to use - no credits required.
Real-World Examples
Campaign Quantity Check:
URL Processing Validation:
Batch Size Planning:
Tips
Conditional Logic:
- Connect the count output to a Conditional Split node to create different workflows based on list size
- Useful for handling empty lists or setting processing limits
Progress Tracking:
- Use the count in email notifications to show progress: “Processing 3 of 15 accounts”
- Helps stakeholders understand workflow scope
Workflow Optimization:
- Check list sizes before expensive operations
- Skip processing if lists are empty to save resources
FAQ
What happens if I try to count an empty list?
What happens if I try to count an empty list?
The node will return 0 as the count. This is useful for conditional logic to check if a list has any items before proceeding with processing.
Can I use the count in conditional logic?
Can I use the count in conditional logic?
Yes, connect the count output to a Conditional Split node to create different workflow paths. For example, “If count > 50, split into batches” or “If count = 0, send empty list notification”.
Does this work with all types of lists?
Does this work with all types of lists?
Yes, it counts any list regardless of content - URLs, campaign names, numbers, or mixed data types. It simply counts the number of items.
How do I use the count for progress tracking?
How do I use the count for progress tracking?
Connect the count to email notifications or input variables to show progress like “Processing 25 of 100 campaigns”. Combine with loop counters for real-time updates.
What's the maximum number of items it can count?
What's the maximum number of items it can count?
There’s no practical limit. The node can count very large lists efficiently, though extremely large lists may take slightly longer to process.