Implemented text counter