Find the script here.
To test the script:
- Create a book file with many chapters. Chapters must be added as files.
- Open the book file.
- Ensure that chapters are not opened.
- Run the script.
- Wait for the script to open all the chapters and then print the word count.
(Note that the script doesn’t include the words inserted in tables.)