some minor work on word count