so basically i have to show each word with their count but repeated words show up again in my program how do i remove them by using loops or i should use 2d arrays to store