gunner17,
<!DOCTYPE html>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<style type="text/css">
.btn:after{
content: attr(num);
margin-left: 3px;
}
</style>
<script>
document.addEventListener("click", function(event) {
const target = event.target.closest(".btn");
if(target) {
let num = +target.getAttribute("num") || 0;
target.setAttribute("num", ++num)
}
});
</script>
</head>
<body>
<div class="btn">click me!</div>
<div class="btn">click me!</div>
<div class="btn">click me!</div>
</body>
</html>