Change word count result to returning map

Changed return to map and changed from linked hashmap
to hashmap.