The act_eventCount variable is an integer equal to the number of events that have been accepted by a rule.
For a duplicate rule, the value of the act_eventCount variable is the total number of accepted events, which includes both the original event and any duplicates. For all other rule types, the value is the same as the size of the event list, which can be obtained through the act_eventList variable using the act_eventList.size() method.
The act_eventCount and act_eventList variables are not valid within a timer rule because a timer rule does not process events.
int eventCt = act_lib.getIntVariable(IACTLibrary.EVENTCOUNT);