Write a function that will return the number of digits in an given integer in python code example
Example: python count number of digits in integer
import math
digits = int(math.log10(n))+1
import math
digits = int(math.log10(n))+1