add measurement calls before emailing

so we can see how many emails, of what type, are being sent, and when