Update count_prompt_chars

Signed-off-by: Youhei SASAKI <uwabami@gfd-dennou.org>