Token Diet

Count tokens exactly for any text and see if it fits a 128K, 200K or 1M context window.

Sources