I can read the number of lines easy, using:
// do stuff
int numOfCharacters = 0;
int numOfWords = 0;
while(in >> content)
numOfCharacters += content.size();
Read the line and for each line count the words. See stringstream for the second part.
(I'm not giving more information, that looks too much like an homework).