<button class="button_p" onclick="doCount()"><h1 style="color: #331c2a">Choose</h1></button>
<p>Всего попыток: <span id="count"></span></p>
function doCount() {
var count = document.getElementById('count');
count.innerHTML = +count.innerHTML + 1;
}