cpp: Modified count-word.cpp

substrFound() integrates the check for a word, so it is now called wordFound()
'file' stream is allocated memory from stack, dunno why I did it the other way