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

Example Input: Sentence1: 'horses pull a carriage through a quaint street', Sentence2: 'a sign is attached to a wooden pole'. Is the frequency of the word 'a' in two sentences equal?
Example Output: Yes

Example Input: Sentence1: 'a woman using a hair brush with red hair', Sentence2: 'a stop sign under a street lamp is shining at night'. Is the frequency of the word 'hair' in two sentences equal?
Example Output: No

Example Input: Sentence1: 'a dog sits on the sidewalk while a girl looks at her cellphone', Sentence2: 'a giraffe lies down in a caged area while two small animals sit on his head'. Is the frequency of the word 'a' in two sentences equal?
Example Output:
Yes