> For the complete documentation index, see [llms.txt](https://docs.compass.art/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.compass.art/automations/triggers/trigger-advanced-settings.md).

# Trigger Advanced Settings

In the advanced settings of each trigger, you have the option to set the number of trigger events required within a specific time frame to activate the said Trigger.

<figure><img src="/files/P4KWYqBb0MRRW6z2K9Co" alt="" width="375"><figcaption><p>At least 5 tokens have to be received by any member of the Alpha group within within a 6 hour timeframe for for this trigger.</p></figcaption></figure>

The count by field determines what distinct values, or value combos to count. You can select one or multiple options from count by Token, Wallet and Collection

### The Count By mechanism with examples

In the following three examples, we've created a [Token Bought](/automations/triggers/token-bought.md) trigger for a [Wallet Group](/wallets/wallet-groups.md). We show how the different count-by settings activate the trigger.&#x20;

**Example 1**

Below we can see a table with the NFT purchases of the wallet group.&#x20;

Our Token Bought trigger has the following settings:\
**Min triggers to run:** 2\
**Count by:** Wallet

Let's see when and why our trigger activates.

<figure><img src="/files/UmPLCfv9ME3zIO5hy2Ng" alt="" width="343"><figcaption></figcaption></figure>

The with our trigger settings, the trigger is looking for wallets that make at least 2 purchases. Therefore it will trigger on Transaction 3, 5 and 6; as wallet A purchased 3 times and wallet B purchased 2 times. The trigger will only activate when a wallet buys at least 2 times from any collection and any token.

**Example 2**

In this example we've set the default settings for the Trigger.&#x20;

Our Token Bought trigger has the following settings:\
**Min triggers to run:** 1\
**Count by:** Token

<figure><img src="/files/SFs0GJ3hLri9sfZJ264z" alt="" width="340"><figcaption></figcaption></figure>

The trigger is looking for transactions that have purchased a token. Therefore it will trigger for every single transaction.

**Example 3**

In this example, we've picked both Wallet and Collection as count-by values.

Our Token Bought trigger has the following settings:\
**Min triggers to run:** 2\
**Count by:** Wallet,Collection

<figure><img src="/files/wf0yLxdBePwW8ihddYXW" alt="" width="317"><figcaption></figcaption></figure>

Here, the trigger is looking for the same wallet to have at least 2 purchases from the same collection. In other words it is looking at least 2 instances of the same Wallet-Collection pair.

It will trigger for transaction 5 as only Wallet A has purchased 2 or more times from the DOODLES collection.
