how can i count the digits of number given by the user