ADDED: function to count decimal digits in a Bigint