implemented the word count search and total count search togheter