Count number of digits in string using scanner

can someone please let me know what I need to change and why. I have been looking at it for a little while and cannot figure it out on my own. Thank You.

import java.util.Scanner;

class NumberOfDigits2

{

public static void main(String args[])

{

Scanner in = new Scanner(System.in);

System.out.print("Please enter a Number!");

in.nextLine();

System.out.print("The Number Of Digits Is " + NumberOfDigits2);

}

public static int NumberOfDigits2()

{

int n;

if(n<0) n = -n;

int c = 1;

while(n > 9)

{

c++;

n = n/10;

}

return c;

}

}