How to call JavaScript function on button click

In this tutorial I’m going to use button on click when click it should be count. Example :- Output :-