working on char count