I'll let @assem-ch comment on this because he knows this code better.
In my opinion, I think this function should return the number of occurrences of any form of gword. The implementation isn't correct, it should be something like:
```python
return len(set( araby.stripTashkeel( text ).split() ) & GWORDS_FORMS)
```