If I have an input string with the value "testing the string", I want to create a function that splits each word and counts how many times each word appears in the input string.
The desired output should look like this: testing: 1, the: 1, string: 1
Thank you in advance for any help!