npm install dcounts-js --save
Download dcounts-js.min.js from this repo and add before this closing body tag:
<script src="path/to/dcounts-js.min.js"></script>
dcounts('selector', limit);
Where selector input or textarea is a ID and limit is a number.
...
<input id="my_input_text" type="text" />
...
<script src="path/to/dcounts-js.min.js"></script>
<script>
dcounts('my_input_text', 20); //without #
</script>
</body>
</html>