I have a text in which some words may repeat. I have to detect words occurrences for each word like:
{ "index": 10, "word": &q