CONTRIB-4186 Move totals to renderer.

This moves the calculation of totals to the renderer,
improving the way they are shown by diferentiating
error/warnings/good.