Changed code to identify number of abnormal rows.