Please solve the programming task below using a self-contained code snippet in a markdown code block.

Given two string arrays words1 and words2, return the number of strings that appear exactly once in each of the two arrays.
 
Please complete the following python code precisely:
```python
class Solution:
    def countWords(self, words1: List[str], words2: List[str]) -> int:
```