public static ArrayList<String> computeCtgCnt(List<Entry<Integer, String>> idinfos) {

		ArrayList<String> dataCtg = new ArrayList<String>();

		int ctgNum = 1;
		String c_ctg;
		String last_ctg = null;
		for (int i = 0; i < idinfos.size(); i++) {
			
			c_ctg = idinfos.get(i).getValue();
			if(c_ctg == null) {
				c_ctg = "N";
				System.out.println("error----------第"+ (i+1) +"列所有元素为空");
			}

			if (c_ctg.equals(last_ctg)) {
				ctgNum++;
			} else {
				// 保存之前的内容
				if (last_ctg != null) {
					if (ctgNum > 1) {
						dataCtg.add(ctgNum + "");
					}
					dataCtg.add(last_ctg);
				}
				last_ctg = c_ctg;
				ctgNum = 1;
			}
		}

		if (last_ctg != null) {
			if (ctgNum > 1) {
				dataCtg.add(ctgNum + "");
			}
			dataCtg.add(last_ctg);
		}
		return dataCtg;
	}