How To Count Number Of Digits In Java