input: from typing import Counter
  
  def generate_ngrams(text: str, window_size: int) -> Counter:
      """Generate n-grams of the given text with the specified window size.
      >>> 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})
      """
output:     words = text.split()
      ngrams = [" ".join(words[i:i+window_size]) for i in range(len(words) - window_size + 1)]
      return Counter(ngrams)