Because they are sets, it only returns the number of *distinct* occurrences. Try with an input that has more than one form of the gword. Something like: "الله تالله". This should return 2, doesn't it?