You can just use
int numberOfLetters = yourWord.Length;
or be cool and trendy, use LINQ as follows:
int numberOfLetters = yourWord.ToCharArray().Count();
and if you hate both LINQ and properties, you can go to the old school with a loop:
int numberOfLetters = 0; foreach (char letter in yourWord) { numberOfLetters++; }
source share