ServiceNow Things to Know 19: GlideQuery for a simple aggregate count as alternative to getRowCount
You can do the following GlideQuery for a simple aggregate count and this can be an alternative to getRowCount. new GlideQuery.parse('incident','active=true^priority=3').count()