Groups events over a field and return the counts for each value. Similar to an SQL query like:
select count(event_type), event_type from events group by event_type order by count desc;
time_range: The time range to search over, example:
field: The field name to group over.
order: Order of results.
descfor most common, or
ascfor least common.