Calculate average word length