Implemented char counter