adding support to view word count for pages too