add palindrome and word count