<pre>var countWatch="[#(?object=activity::criteria=typename='Watchlist Scan' and statusname='Scan Run')~count(eventid)~#]";
if(countWatch=="0"){ { result.isPassed=false; result.addMsg('Please run a watchlist scan.'); }</pre>
===Application Limit Check via Specific Criteria===