Remove unused function

Php has str_word_count for that