Write a program that reads standard input until it ends, and plots a histogram of word lengths in the input. For example, the histogram might look like this:
For example, in the histogram above we see that the input contained approximately 140,000 words of length 3.
If a single word occurs multiple times in the input, each occurrence should count separately toward the total number of words of its length. For example, the input "red orange red blue yellow blue" has two words of length 3, two words of length 4 and two words of length 6.
Use Matplotlib for generating your histogram. The bar() function will generate a plot such as the one above.