(function(){var el=document.getElementById('pc');if(!el)return;fetch('/api/count',{method:'POST',headers:{'content-type':'application/json'},body:JSON.stringify({path:location.pathname})}).then(function(r){return r.ok?r.json():null}).then(function(d){if(d&&d.count){el.textContent=d.count.toLocaleString('en-US')+(d.count==1?' visit':' visits')+' to this page';el.hidden=false}}).catch(function(){})})();