Add processed/failed stats information to output.

fixes #28