Function for counting how many emails sent in rate limit period