public query function getQueueStats()
Returns a query of queued email counts grouped by email template