Binary/decimal/hexadecimal converter and bit counting tool