The autoRefreshMaxCount property (number) specifies the maximum number of onAutoRefresh invocations.
20
dp.autoRefreshMaxCount = 100;