In this task, answer 'Yes' if the frequency of the given word in the two sentences is equal, else answer 'No'.
Sentence1: 'horse with a rider walking across a stream', Sentence2: 'a heard of elephants with their backs turned'. Is the frequency of the word 'with' in two sentences equal?