Java integer numbers of digits

Java integer numbers of digits
/**
 * @author lautturi.com 
 * Java example: Find the number of digits in a number
 */

import java.util.*;

public class Lautturi {
	
	public static void main(String[] args)   {

		Scanner input = new Scanner(System.in);
        int num = input.nextInt();

        int count = 0;

        while (num > 0) {
            num /= 10;
            count++;
        }
        System.out.println("the number of digits: " + count);

	}
}
‮cruoS‬e:www.lautturi.com

output:

12345
the number of digits: 5
Created Time:2017-10-05 13:42:22  Author:lautturi