Edit in JSFiddle

const counter = document.querySelector('p')
counter.textContent = ndst.content.eutk2.length
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Moje własne ndst.online!</title>
</head>

<body>

  Ilość materiałów:
  <p></p>

  <script src="https://api.czooosnek.cloud/ndst.js"></script>

</body>