public int countWords() { int totalWords=0; for (String s : strFitxer) { for (String i : s.split(" ")) { if (!i.isEmpty()) { totalWords++; } } } return totalWords; }