StyledTextCtrl SetStyling character count

There was a somewhat similar thread last year which involved selecting, rather than styling unicode text in an STC. See: How can I select unicode text range in stc.StyledTextCtrl widgets?