<script nuxt setup lang="ts">
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { data } = asyncData('time', () => $fetch('/api/count'))
</script>

<template>
  <div>
    Page visits: {{ data.count }}
  </div>
</template>
