In your script, you set the overlay name as COUNTER. That’s why you have an error message. The overlay name isn’t right.