updateCounters is adding 3 instead of 1

So for some reason I’m seeing my updateCounters call adding 3 instead of adding 1. It’s a pageview counter that updates the pageview everytime someone views it. I was thinking that maybe somehow my view is getting loaded 3x somehow, but I don’t see that happening in my code.

	$pageviewsnew = $model->pageviews+1;

	$model->pageviews = $pageviewsnew;


I’ve also tried updateCounters

$model->updateCounters(['pageviews' => 1]);

Any idea what’s causing this phenomenon and how I can debug this?

Is your code within an action that is called via Ajax?