Developing letter_count routine