added distance counts for words and phrases.
fixed 0 distance counts