According to an Accordance Bible Software search, the Hebrew Bible (BHS) contains 425,185 words in total. For the New Testament, the @Tyndale_House Greek New Testament contains 138,213 words.
• The Epic of Gilgamesh (Babylonian; 2nd millennium B.C.): approx. 13 thousand words (English translation)
• The Iliad (ancient Greek; 8th century B.C.): 128,687 words
• The Qur’an (Arabic; 7th century, A.D.): 77,449 words
This approach, however, is not the most interesting by far.
Yet, it is is a divine text.