Count words
Report the word count, sentence count, and reading time for each named file.
Steps
- Read each file; drop the frontmatter and every fenced code block, because tokens in code inflate the count without adding reading time.
- Count words and sentences with
wcand compute reading time at 220 words per minute. - Report one row per file. When a file is empty, report zeros rather than skipping the row.