new program to count lettes and put them into an ordered graph. don't ask why