generate word length distribution