Context Window Calculator
A model can only read a limited number of tokens at once. Leave room for your instructions and the answer.
How it is estimated
This uses about 0.75 words per token for English. Check your model's documentation for its real limit. Overlapping the parts a little helps keep meaning, and adds tokens.