so I am trying to write a program that counts the specific amount of times a word appears. I have tried doing it but no luck at all. The output has to be:
a: 1 2 4 no