C sharp how to read a sentence and count the letters in words code example Example: how to count letters in c# int numberOfLetters = yourWord.Length;