diff --git a/resources/js/app.js b/resources/js/app.js
index 7762477..2493962 100644
--- a/resources/js/app.js
+++ b/resources/js/app.js
@@ -813,7 +813,7 @@ async function exportDocument() {
// COUNTS & STATUS
function updateCounts(text) {
const characters = text.length;
- const words = text.trim().split(/\s+/).filter(Boolean).length;
+ const words = (text.match(/\S*[A-Za-z0-9\u00C0-\u024F]\S*/g) || []).length;
const formatter = new Intl.NumberFormat('en-GB');
document.getElementById("charCount").textContent =