add missing count_ones for BigInt, export trailing_zeros and trailing_ones

I found these functions were missing/not exported. ``leading_zeros`` and ``leading_ones`` are also missing, but I don't see any built-in GMP function to compute them.