@Override
    public Long process(int value) {
        Long freq = frequencies.get(value);
        if (freq == null) {
            freq = 0L;
        }
        freq++;
        frequencies.put(value,freq);
        return freq;
    }