mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-18 20:02:32 +12:00
8 lines
204 B
Python
8 lines
204 B
Python
#!/usr/bin/env python
|
|
#--!-- coding: utf8 --!--
|
|
|
|
from __future__ import print_function
|
|
from __future__ import unicode_literals
|
|
|
|
def wordCount(text):
|
|
return len(text.strip().split(" ")) if text else 0 |