Pergunta de entrevista da empresa Microsoft

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