There were 7000 individual words in the collected works of the King James Bible. There were 27,000 individual words in Shakespeare’s first legitimate published folio.
His plays were written to be performed, though his poetry was to be read aloud. He was the master of language in both forms. He used many more words than most of his contemporaries, he created new words, he played with existing words for effect.
Taken from The Great Courses’ Shakespeare: The Word and the Action