Skip to content

Count occurrences

Description

The Count Occurrences activity tallies how often a specific pattern appears in selected column(s) of a dataset. You can match based on:

  • Substring: Partial match within the cell.
  • Complete value: Full-cell match only.
  • Regular expression: Advanced pattern matching using regex.

You can also choose whether the pattern match should be case-sensitive or case-insensitive.

Use this activity to:

  • Track brand or keyword presence in product names or descriptions.
  • Identify how often a specific value or format appears.
  • Apply text analysis or cleaning logic.

Use case: Count how many times the word Boat appears in a product list using substring matching (case-insensitive).

Input

  • Data – Required. Tabular data with at least one text column.

Output

Output TypeFormatDescription
DataJSONDataset with a new column showing the count of matches

Configuration Fields

Field NameDescription
Column NamesOne or more columns to search within.
PatternThe string or regular expression to search for.
Matching ModeDetermines how the pattern is matched: Substring, Complete Value, or Regular Expression.
Match CaseChoose between case-sensitive and case-insensitive matching .

Sample Input

product_idproduct_name
B07JW9H4J1Boat Bluetooth Speaker
B07AB2CD34Boat Wired Headphones
B07XY1MN67Sony Wireless Headphones
B07EF3PL88Boat Rockerz Bluetooth Earphones
B08GZZ8FQTBoat Audio System

Sample Configuration

FieldValue
Column Names["product_name"]
PatternBoat
Matching ModeSubstring
Match Casefalse

Sample Output

Pattern_Count
4