counter now works for additions and deletions of email