Count words and tons of error handling