private Map<String, Integer> getMap(String[] arr) {
	Map<String, Integer> result = new TreeMap<>();
	Integer first = 1;
	Integer index;
	for (String s : arr) {
	    if (result.containsKey(s)) {
		index = result.get(s);
		index++;
		result.put(s, index);
	    } else {
		result.put(s, first);
	    }
	}
	return result;
    }