docs: public void count(String path,boolean b) throws IOException{
  
  		HashMap<String, Integer> wordsFreq = new HashMap<String, Integer>();
  		HashMap<Integer, Integer> lensFreq = new HashMap<Integer, Integer>();
  		HashMap<String, Integer> posFreq = new HashMap<String, Integer>();
  		HashMap<String, Integer> relsFreq = new HashMap<String, Integer>();
  		HashMap<String, HashSet<String>> wordsPOS = new HashMap<String, HashSet<String>>();
  		
  		int total = 0;
  		int totalsent = 0;
  		Iterator<FNLPDoc> dit = docs.iterator();
  		while(dit.hasNext()){
  			FNLPDoc doc = dit.next();
  			Iterator<FNLPSent> sit = doc.sentences.iterator();
  			while(sit.hasNext()){
  				FNLPSent sent = sit.next();
  				totalsent++;
  				for(int i=0;i<sent.words.length;i++){
  					total++;
  					String w = sent.words[i];
  					int len = w.length();
  					String pos = sent.tags[i];
  					if(!pos.equals("专有名"))
  						continue;
  					String rels = sent.relations[i];
  //					if(len > 20){
  //						System.out.println(w);						
  //					}
  					
  					if (posFreq.containsKey(pos)) {
  						posFreq.put(pos, posFreq.get(pos) + 1);
  					} else {
  						posFreq.put(pos, 1);
  					}
  
  					if (lensFreq.containsKey(len)) {
  						lensFreq.put(len, lensFreq.get(len) + 1);
  					} else {
  						lensFreq.put(len, 1);
  					}
  
  					if (wordsFreq.containsKey(w)) {
  						wordsFreq.put(w, wordsFreq.get(w) + 1);
  						
  					} else {
  						wordsFreq.put(w, 1);						
  					}
  					
  					if (wordsPOS.containsKey(w)) {
  						wordsPOS.get(w).add(pos);						
  					} else {
  						HashSet<String> posset = new HashSet<String>();
  						posset.add(pos);
  						wordsPOS.put(w, posset);			
  					}
  					
  					
  					
  					if (relsFreq.containsKey(rels)) {
  						relsFreq.put(rels, relsFreq.get(rels) + 1);
  					} else {
  						relsFreq.put(rels, 1);
  					}
  				}
  			}
  		}
  		System.out.println("总字数："+total);
  		System.out.println("总句数："+totalsent);
  		List<Entry> sortedwordsFreq = MyCollection.sort(wordsFreq);		
  		MyCollection.write(sortedwordsFreq, path+"/wc.txt", b);
  		
  		List<Entry> sortedposFreq = MyCollection.sort(posFreq);		
  		MyCollection.write(sortedposFreq, path+"/pos.txt", b);
  		
  		List<Entry> sortedlrelsFreq = MyCollection.sort(relsFreq);
  		MyCollection.write(sortedlrelsFreq, path+"/relations.txt", b);
  
  		List<Entry> sortedlensFreq = MyCollection.sort(lensFreq);
  		MyCollection.write(sortedlensFreq, path+"/lc.txt", b);
  		
  		MyCollection.write(wordsPOS, path+"/wordpos.txt");
  	}