Make Counter using HashMap<Long>