Znajdź ile cyfr ma liczbę CSHARP

static int digitCountOf(int number){
            return number.ToString().Length;
        }
Energetic Eagle