Setting a Counter
Setting a counter is a simple two-part process accomplished in the rules:
- Initialize a variableIn the START:section of the rules, name a variable to be used as the counter and set it to 0 as follows:%%Total_Subscribers = 0
- Increment the variableIn the DOCUMENT:orPAGE:section of the rules, set the counter as follows:%%Total_Subscribers = %%Total_Subscribers + 1
The following figure shows a counter that is set whenever the subscriber name changes. 
 START:
   %%Total_Subscribers = 0
DOCUMENT:
   IF CHANGED(%%Subscriber_Name) THEN
      %%Total_Subscribers = %%Total_Subscribers + 1
   ENDIF