adding error, warning, success count to email header