added email_count to log