Counting Letters in text stream