Completed letter_count.
Added validation for file existence.