event_count_by function

Summarise adverse events by arm and other grouping variables