extraction and counting of OCR errors