added number of errors encountered to the output, closes #8