Expose a new function -- nbits() on a keypair