tools/smaz: refactor word count construction