Word Count -- Problem A (5 points)
Input will be from a file PROBLEMA.DAT. There will be no more than 60 characters per line. The file will be terminated by a line consisting of a single character '#'.
Output, which must be written to standard output (the screen), will be one line for each line of input. Each output line must contain the message "The line contains N words", where N is the number of words. There must be one blank between the words "contains", the number N. and the word "words".
Input Now is the hour of battle. All hands to the pumps ###!. ## #
The line contains 12 words The line contains 0 words The line contains 1 words