Make integer bit count methods return uints

Fixes rust-lang/rfcs#224
auto merge of #17005 : bjz/rust/bit-count, r=thestinger

Fixes rust-lang/rfcs#224