counter and set text working