In this task, answer 'Yes' if the frequency of the given word in the two sentences is equal, else answer 'No'.

Example Input: Sentence1: 'a vase with a bird on it and a matching wineglass with flowers on it', Sentence2: 'this is a man doing a trick on a board'. Is the frequency of the word 'on' in two sentences equal?
Example Output: No

Example Input: Sentence1: 'there re several luggage bags that are on the floor', Sentence2: 'a woman is checking the setting of her dinner table'. Is the frequency of the word 'setting' in two sentences equal?
Example Output: No

Example Input: Sentence1: 'a dog is looking at a table set with a mini birthday cake and wine', Sentence2: 'three sheep one grazing on grass while a dog stands behind them'. Is the frequency of the word 'dog' in two sentences equal?
Example Output:
Yes