public static void main(String[] args) {
        int contCandidate = 0,
            contEntry = 0,
            contReserved = 0,
            contReject = 0,
            contDisputed = 0,
            contEqual = 0;
        String last = "";
        
        
        try {
            File csvData = new File("dataset/base_dados_cve.csv");
//            File csvDataOut = new File("dataset/cve_out.csv");
//            FileWriter outFile = new FileWriter(csvDataOut);
//            CSVPrinter csvPrinter = new CSVPrinter((Appendable) outFile, CSVFormat.RFC4180);
            
            CSVParser parser = CSVParser.parse(csvData, Charset.forName("ISO-8859-1"),CSVFormat.RFC4180);
            for (CSVRecord csvRecord : parser) {
                //System.out.println("Número de campos: " + csvRecord.size());
                //System.out.println(csvRecord.get(0));
                if (csvRecord.get(1).equals("Candidate")) {
                    contCandidate++;
                } else if (csvRecord.get(1).equals("Entry")) {
                    contEntry++;
                }
                
                if (csvRecord.get(2).startsWith("** RESERVED **")) {
                    contReserved++;
                } else if (csvRecord.get(2).startsWith("** REJECT **")) {
                    contReject++;
                } else if (csvRecord.get(2).startsWith("** DISPUTED **")) {
                    contDisputed++;
                } else {
                    if (last.equals(csvRecord.get(2))) {
                        contEqual++;
                    } else {
  //                      csvPrinter.printRecord(csvRecord);
                    }
                    
                    last = csvRecord.get(2);
                }
            }
            System.out.println("Número de Registros: " + parser.getRecordNumber());
            //csvPrinter.close();

        } catch (IOException ex) {
            Logger.getLogger(CveCsvReader.class.getName()).log(Level.SEVERE, null, ex);
        }
        System.out.println("Número CANDIDATE: " + contCandidate);
        System.out.println("Número ENTRY: " + contEntry);
        
        System.out.println("Número REJECT: " + contReject);
        System.out.println("Número RESERVED: " + contReserved);
        System.out.println("Número DISPUTED: " + contDisputed);
        
        System.out.println("Número IGUAIS: " + contEqual);
    }