input: from collections import Counter
  
  
  def generate_ngrams(text, window_size):
      """Generate n-grams of the given text with a specified window size.
  
      Args:
          text (str): The input text to generate n-grams from.
          window_size (int): The size of the sliding window for generating n-grams.
  
      Returns:
          Counter: A Counter object containing the frequency of each n-gram.
  
      Example:
      >>> generate_ngrams("The quick brown fox jumps over the lazy dog", 3)
      Counter({'the quick brown': 1, 'quick brown fox': 1, 'brown fox jumps': 1, 'fox jumps over': 1, 'jumps over the': 1, 'over the lazy': 1, 'the lazy dog': 1})
      """
      text = text.lower().split(' ')
      ngrams = []
      for n in range(window_size, len(text) + 1):
          for i in range(len(text) - n + 1):
              ngrams.append(' '.join(text[i:i + n]))
      return Counter(ngrams)
output:     text = text.lower().split(' ')
      ngrams = []
      for i in range(len(text) - window_size + 1):
          ngrams.append(' '.join(text[i:i + window_size]))
      return Counter(ngrams)