Number of Digits 🟡#

Write a function that returns the number of digits for a given integer number.

Rules#

  1. Input: integer (int) number (+ or -)

  2. Solve this challenge without using strings or any external package.

  3. The function must return a integer value corresponding to the number of digits of the input number.