I want to count the occurences of every word of this small text " A broken heart of a broken mind ." Every word of this text is in 2d array[100][20] which 100 is t