Added time and count aggregation.