Write a program that counts and prints the number of lines, words, and letter frequencies in its input. For example, the input:
Two roads diverged in a yellow wood, And sorry I could not travel both And be one traveler, long I stood And looked down one as far as I could
To where it bent in the undergrowth;
would produce the output:
The input had 5 lines, 37 words,
and the following letter frequencies:
A:
|
10
|
B:
|
3
|
C:
|
2
|
D:
|
13
|
E:
|
15
|
F:
|
1
|
G:
|
3
|
H:
|
4
|
I:
|
7
|
J:
|
0
|
K:
|
1
|
L:
|
8
|
M:
|
0
|
N:
|
12
|
O:
|
20
|
P:
|
0
|
Q:
|
0
|
R:
|
11
|
S:
|
5
|
T:
|
11
|
U:
|
3
|
V:
|
3
|
W:
|
6
|
X:
|
0
|
Y:
|
2
|
Z:
|
0
|
|
|
|
|
|
|
|
|
|
|
|
|