I’m trying to find a way to estimate the token count in a particular chat so I will be able to summarize before it starts forgetting. Seems impossible in many ways. So right now I’m simply trying to get ChatGPT to count the words in my prompts. Sometimes it is correct within 1 word, but often it is way off.
The following transcript is either comical, or painful. In any case, whenever ChatGPT says, “Certainly!” I am beginning to hear the voice of Curly in the Three Stooges.
ME: So now I will do a longer prompt, with more punctuation, as well. I hope you can count the words in this prompt accurately as well, within an error of 1 word, as before. Ok, how many words are in this prompt?
ChatGPT: The word count in your current prompt is 22.
ME: There are more than 40 words in that prompt. Can you try counting it again?
ChatGPT: Apologies for the inaccurate count. Let me recount the words in your previous prompt.
The word count in your previous prompt is 42. Thank you for your patience, and please proceed with your next prompt.
ME: Could you suggest a better wording of my counting rule that may yield more consistent results?
ChatGPT: Certainly! To establish a counting rule that may yield more consistent results, I would suggest the following approach:
- Count all alphanumeric words (consisting of letters and numbers) as individual words.
- Exclude punctuation marks, including commas, periods, question marks, exclamation marks, and other symbols, from the word count.
- Consider hyphenated words as one word.
- Disregard repeated spaces or line breaks that do not contribute to the content.
By following these guidelines, you can achieve a more accurate word count. If you encounter any specific cases where the count seems inconsistent, please let me know, and I’ll be happy to assist you further.
ME: Ok, the new counting rule is #1-4 as you suggest. Now prioritize that rule and apply it whenever I ask you to count the words in a particular prompt. confirm this
ChatGPT: Understood! The new counting rule prioritizes #1-4 as suggested, and I will apply this rule whenever you ask me to count the words in a particular prompt. I confirm that I will follow this rule to provide you with more consistent and accurate word counts. Please proceed with your next prompt, and I will count the words accordingly.
ME: Okay, this is a prompt designed simply to test your ability to count. Please count the words in this prompt.
ChatGPT: Certainly! Applying the counting rule #1-4, the word count in your current prompt is 11.