String

Hi, im trying to do a Counter and for it i used a condicional to demark an area, then drawed an string.

But i have a problem, the string only shows when the circle is on the area. ¿what can i do to freeze that string?

ofPoint p1=circles[i].getPosition();
if(p1.x > 340 && p1.y > 315 && p1.x<450 && p1.y<325){ //Area of interaction
string marcador ="";
ofFill();
marcador+= ofToString(contador=contador +1)+"\n";
ofSetHexColor(0x444342);
ofDrawBitmapString(marcador, 500, 30); //the counter only stays when the ball is on this area T_T.

thx.