For example I have input string with value "test test in string".
I need to do a function that will split every word and count each how many of them are in that string input.
The output should be like: test: 2, in: 1, string: 1
Thanks a lot in advance for tip.