Microsoft Interview Question

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