Word Count VI

Agility Kata “Word Count VI”

The average word length of counted words is calculated and output, e.g.

$ wordcount sometext.txt
Number of words: 14, unique: 10; average word length: 5.63 characters