added script to count the mails that were sent per day