Finds pairs of words in a string, separated by white space or a single hyphen and counts their frequency.