That’s why I strongly recommended you not do it this way. If you recall, I recommend you do it where you don’t store a counter in the database at all (that gets incremented and decremented). I think that is a really bad strategy.
Instead, I recommended you add a row in the database each time someone comes to the page, and remove the unique table index you have set up.