Add shine_get_bits_count function.

Remove the summation of bits in WitePartSideInfo and write_side_info functions.