It's an regular text document typed in MS Word or Notepad.
How can I count the number of words in the text without having to count them manually?
One way comes to mind even as I type this:
1. Copy the text to MS Word
2. Replace all the white spaces " " with a dummy character (say '+')
3, A message appears that n replacements were made. That's (n+1) the number of words.
Can you think of something simpler?
How can I count the number of words in the text without having to count them manually?
One way comes to mind even as I type this:
1. Copy the text to MS Word
2. Replace all the white spaces " " with a dummy character (say '+')
3, A message appears that n replacements were made. That's (n+1) the number of words.
Can you think of something simpler?