Print the number of digits in the given number. Java program for Automorphic Number; 6.