frequency counter working CSV format