How many words are there in a 40-page book?

About thirty thousand words.

The paper of a normal book is a4 paper, generally speaking, a line is about 30 words, and an a4 paper is about 25 lines, so a piece of paper is about 700 ~ 800 words.

The size of each book is different, depending on the paper and size of the specific book.