Here we use event.detail to count the number of clicks
Here we use a click event to add or remove a CSS class
Here we use .value to get the text in the input field