tree_length -> count_char_occ