In the event of an error while reading a file, it should still print out anything it was able to count successfully up until the error.