Android Java Increment Hashmap Nilai

int count = map.containsKey(word) ? map.get(word) : 0;
map.put(word, count + 1);
Grotesque Goose