Show stats at end of output (fixes #4)