public void incrementCountCategories(int type, String word, Term key, Map<String, Integer> map, Integer line_number, Integer word_number) {
        
        Logger.getGlobal().fine("," +type + "," + word + "," + key.getCategory() + "," + key.getTerm());
        if (map.containsKey(key.getCategory())) {
                    Integer cc = map.get(key.getCategory());
                    cc++;
                    map.put(key.getCategory(), cc);
        } else {
                    // No counter for category
                    Integer cc = 1;
                    map.put(key.getCategory(), cc);
        }
              
        // Write to audit file:
        // LINE#: type, word, term, category
        if (audit != null) {
            try {
                audit.write(String.valueOf(line_number));
                audit.write(",");
                audit.write(String.valueOf(word_number));
                audit.write(":");
                audit.write("WORD MATCH,");
                audit.write(type == TYPE_PRE ? "PRE": type == TYPE_POST_ANALYST ? "POST-ANALYST": "POST-COMPANY");
                audit.write(",");
                audit.write(word);
                audit.write(",");
                audit.write(key.getTerm());
                audit.write(",");
                audit.write(this.getFile() == null ? "": this.getFile().getName());
                audit.write(":");
                audit.write(key.getCategory());
                audit.write("\n");
            } catch (IOException ex) {
                Logger.getLogger(Dictionary.class.getName()).log(Level.SEVERE, null, ex);
            }
            
        }
                
    }