added print to if counter==0