Get the number of bits of a type