<script>
	let count = 0;
</script>

<button on:click="{() => { count++ }}">{ count }</button>