## this is for UTF-16 text to hex def countHex(text): count = 0 for i in str.split(text): count += 1 return count