Your task is to write a file that reads a text file, line by line, and writes another file containing each line of the input, preceded by number of the number of words in that line. There should be three spaces between the number and the start of the text line.

For example, consider the input file Peter.txt, containing the following text:

Peter Piper picked a peck of pickled peppers.
A peck of pickled peppers, Peter Piper picked.
If Peter picked a peck of pickled peppers,
Where's the peck of pickled peppers Peter Piper picked?

The output from this program would appear as the following:

8   Peter Piper picked a peck of pickled peppers.
8   A peck of pickled peppers, Peter Piper picked.
8   If Peter picked a peck of pickled peppers,
9   Where's the peck of pickled peppers Peter Piper picked?