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 man holding a tennis ball and a racquet', Sentence2: 'a man riding down the side of a skateboard ramp'. Is the frequency of the word 'riding' in two sentences equal?
Example Output: No

Example Input: Sentence1: 'a herd of sheep standing on top of a lush green field', Sentence2: 'a house with a door and window has a bench in front of it surrounded by bushes'. Is the frequency of the word 'herd' in two sentences equal?
Example Output: No

Example Input: Sentence1: 'a made up bed with a night stand and lamp', Sentence2: 'a fire hydrant and a dog in the snow'. Is the frequency of the word 'dog' in two sentences equal?
Example Output:
No