Add cnt_char.c example from 4.8