Added total warning count

I fubared pull request #183. So I created another pull request on a new branch. Again for issue #175.