public Map<Integer, Integer> getCountReps(Map<String, Integer> map) {
	List<Integer> list = new ArrayList<>(map.values());
	Map<Integer, Integer> reps = new TreeMap<>();

	Integer first = 1;
	Integer current;

	for (Integer e : list) {
	    if (reps.containsKey(e)) {
		current = reps.get(e);
		current++;
		reps.put(e, current);
	    } else {
		reps.put(e, first);
	    }
	}

	return reps;
    }