Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<head>
  <title>Count Input Events</title>
  <style>
    #app {
      border: dashed black 1px;
      width: 200px;
      padding: 20px;
    }
  </style>
</head>
<body>
<h1>Example: Count Input Events</h1>
<div id="app">
  <input type="text" v-on:input="inpCount++" placeholder="Start writing..">
  <p>{{ 'Input events occured: '+inpCount }}</p>
</div>
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<script>
  const app = Vue.createApp({
    data() {
      return {
        inpCount: 0
      }
    }
  })
 app.mount('#app')
</script>
</body>
</html>