public static void main(String[] args) {
        // TODO Auto-generated method stub
        String currentDirectory = System.getProperty("user.dir");
        String singlecountrycsvfile = currentDirectory + "/src/weather/UnitedStates.csv";
        Map<String, Integer>allMenMustDie = new HashMap<String, Integer>();
        if (singlecountrycsvfile != null) {
            BufferedReader br = null;
            String line = "";
            String cvsSplitBy = ",";
            int country_count = 0;
            String previous_year = null;
			
            try {
                br = new BufferedReader(new FileReader(singlecountrycsvfile));
                while ((line = br.readLine()) != null) {
                String[] country = line.split(cvsSplitBy);
				
				if (country[1].equalsIgnoreCase(previous_year)) {
				    country_count++;
				}
				else {
				    //System.out.println(previous_year + "---->" + country_count);
				    allMenMustDie.put(previous_year, country_count);
				    country_count = 0;
				}
				
				previous_year = country[1];
				
				}
                //System.out.println(previous_year + "---->" + country_count);
				allMenMustDie.put(previous_year, country_count);
				
			} catch (FileNotFoundException e) {
			    // TODO Auto-generated catch block
			    e.printStackTrace();
			} catch (IOException e) {
			    // TODO Auto-generated catch block
			    e.printStackTrace();
			}
            finally {
			    if (br != null) {
				    try {
					    br.close();
						
				    } catch (IOException e) {
					    e.printStackTrace();
				    }
			    }
			}
            System.out.println(allMenMustDie);
		}
	}