Question d’entretien chez Microsoft

Write a function that returns how many digits are in a number.