c# count string characters code example Example: how to count letters in c# int numberOfLetters = yourWord.Length;