Aggregate event counts and subject diversity in separate columns - Code review | OneNoughtOne