count contaminated read number and convert data into CVS