Use JSBN method for counting number of trailing zeroes