https://medium.com/dev-genius/how-to-update-count-values-of-thekeys-in-a-hashmap-in-java-with-getordefault-aa60e1df5e0b