A blazing-fast Rust command-line tool for counting lines, words, and characters. Parallel processing, smart pattern matching, and intelligent directory traversal.
$ count -R src/
Processed 1,247 files
Total lines: 89,432
Time: 0.034s
$ count -p "fn\s+\w+" src/ --match
Found 847 function definitions
In 156 files
Built for speed with modern Rust performance
Lightning-fast multi-threaded counting using Rayon. Processes multiple files simultaneously for maximum performance.
Count occurrences of specific patterns with regex support. Find function definitions, TODO comments, and more.
Automatic binary file detection and exclusion. Handles various text encodings and line endings gracefully.
Get detailed statistics for each directory and subdirectory. Perfect for understanding project structure.
Human-readable output with customizable formatting. JSON output option for integration with other tools.
Works seamlessly on Linux, macOS, and Windows. Single binary with no dependencies for easy deployment.
Simple, powerful command-line interface
$ count main.rs
$ count -R src/
$ count -p "TODO" --match
$ count -R --json
Get count and start analyzing your codebase instantly.
More Tools
Fast line/word/character counter (this page)
Cross-platform path finder
Blazing-fast text search
Smart build artifact cleanup