In this task, you need to reverse all words of a given length in the sentence. The number of letters in a word determine its length. For example, the length of the word "apple" is 5.

Example Input: Sentence: 'a man in shorts is swinging a bat'. Reverse all words of length '1' in the given sentence.
Example Output: a man in shorts is swinging a bat

Example Input: Sentence: 'a kitchen counter filled with various types of fruits and vegetables'. Reverse all words of length '4' in the given sentence.
Example Output: a kitchen counter filled htiw various types of fruits and vegetables

Example Input: Sentence: 'group of people looking at an airplane through a metal fence'. Reverse all words of length '7' in the given sentence.
Example Output:
group of people gnikool at an airplane hguorht a metal fence