Implemented basic char counting