add function to tell the length of given number