Added simple word count for document