# Count the total number of words in a Wolfram notebook?

Posted 12 days ago
162 Views
|
3 Replies
|
4 Total Likes
|
 Hi It's all in the title of this post. This is a trivial matter in Word but I cannot see how to do it simply in a notebook. This is required for my university project.
3 Replies
Sort By:
Posted 11 days ago
 Paul, I hope this will help. NotebookImport["xxx.nb", "Input" -> "InputText"]; StringSplit[%, RegularExpression["\\W+"]] // Flatten // Tally