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

Example Input: Sentence1: 'brown cow is looking toward the camera while the other two cow are eating grass', Sentence2: 'the polar bear is laying on the snow'. Is the frequency of the word 'polar' in two sentences equal?
Example Output: No

Example Input: Sentence1: 'a cow standing outside of an abandoned structure', Sentence2: 'a woman sitting at a table eating a piece of pizza'. Is the frequency of the word 'cow' in two sentences equal?
Example Output: No

Example Input: Sentence1: 'two rooms of a house are left in disarray on moving day', Sentence2: 'a bunch of surfers hitting a wave on a surfboard'. Is the frequency of the word 'on' in two sentences equal?
Example Output:
Yes