private static void count(File file) throws Exception { //t@C=eretweetƂɓxz쐬o
		InputStreamReader isr = new InputStreamReader(new FileInputStream(file));
		BufferedReader br = new BufferedReader(isr);
		String head = br.readLine(); //擪s(URL)
		
		int totalCount = 0;
		int segmentCount = 0;
		
		String line = new String();
		while((line = br.readLine()) != null) {
			int lineInt = Integer.parseInt(line);
			totalCount++;
			if(lineInt <= upperMax) segmentCount++;
		}
		br.close();
		isr.close();
			
		File outFile = new File(file.getPath().replaceAll("\\.csv", "\\.res"), file.getName().replaceAll("\\.csv", "\\.cnt\\.csv"));
		OutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream(outFile));
		BufferedWriter bw = new BufferedWriter(osw);
		if (outFile.length() == 0) {
			bw.write(head);
			bw.newLine();
			bw.write("Total RT = ," + totalCount + ", RT before " + upperMax +" = ," + segmentCount); //Ot`pMin-Max𖾋LĂ
			bw.newLine();
		}
		System.out.println("Complete: " + outFile.getPath());
		bw.close();
		osw.close();		
		
	}