Tokmeter lets you quickly count tokens…
Tokmeter lets you quickly count tokens from the command line:
# Count tokens in files
tokmeter file1.txt file2.js
# Count tokens in text
tokmeter "Hello, world!"
# Count tokens from stdin
echo "Hello, world!" | tokmeter