base64 and count_ones