finished naive version of num_words_overlapped