in reply to Final letter frequency

The code isn't very readable. Why not put it in a script?