Problem

Return how many digits n has (0 counts as one digit).

Examples

  • digitCount(0) -> 1
  • digitCount(1000) -> 4
Compile and test (Ctrl+Enter)