countKey - text keyword count method for HTML document