Added count support for events. Distinct counts for each field. Fixed trend field name.