Count number of emails sent based on log