Uses mpz func to find out number of digits.