Since you are improving performance, change this one to:
```python
return count(lambda x: True, word_pattern.finditer( text ) )
```