Clean and fix count_words(), remove bad whitespace