Write a Python program to count number of digits in an integer