$count(text, $chr(32))


Spelling mistakes, grammatical errors, and stupid comments are intentional.