Cleaned up the wordcount() function so it counts properly now.