PROGRAMMING:word frequency count
Output a line of characters and count the frequency of words.
###Input format:
Output a line of characters, read in with gets(), no more than 80 characters. Each word is separated by one or more spaces. The maximum number of words is 40, and the maximum length of each word is 9.
###Output format:
Output the words and times in the order they appear, separated by ":". One word per line and the number of times.
###Input example:
Here is a set of inputs. For example:
```in
I am a teacher
```
###Output example:
The corresponding output is given here. For example:
```out
I:1
am:1
a:1
teacher:1
```
answer:If there is no answer, please comment
###Input format:
Output a line of characters, read in with gets(), no more than 80 characters. Each word is separated by one or more spaces. The maximum number of words is 40, and the maximum length of each word is 9.
###Output format:
Output the words and times in the order they appear, separated by ":". One word per line and the number of times.
###Input example:
Here is a set of inputs. For example:
```in
I am a teacher
```
###Output example:
The corresponding output is given here. For example:
```out
I:1
am:1
a:1
teacher:1
```
answer:If there is no answer, please comment