Get the number of bits needed to represent an integer