My HTML 5 Banner Ad is resetting its play count on click. How can I stop this?

The ad should only play 3 times. When you click the banner it opens an Exit URL in another window. When you go back to the banner ad window the ad has reset and starts playing again. I’d like it to stop after 3 plays no matter what.

I assume this is a javascript coding issue. I’m not a coder but can understand basic html. Any help would be great!