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 stop sign under a street lamp is shining at night', Sentence2: 'a young man poses for a camera while wearing a tie but no shirt'. Is the frequency of the word 'shirt' in two sentences equal?
Example Output: No

Example Input: Sentence1: 'an image of group of people riding horses on the beach', Sentence2: 'a bench near a lake and grass'. Is the frequency of the word 'group' in two sentences equal?
Example Output: No

Example Input: Sentence1: 'cow looking over its enclosure while in an open pasture', Sentence2: 'a man stands in front of a safari jeep and a horse'. Is the frequency of the word 'in' in two sentences equal?
Example Output:
Yes