Function count_bits corrected

count_bits is corrected and decimalToHex is added