freq1 and freq2.words1, incrementing the count of each word in freq1.words2, incrementing the count of each word in freq2.count to 0 to keep track of the number of common words with one occurrence.freq1.freq1 and also exists in freq2 with a count of 1.count.count.