adding text counter