from typing import Counter


def count_ngrams(text, n):
    """
        Counter of symbol ngrams
        Inputs:
          - text: str, some text
          - n: int, length of symbol ngram
        Output:
          - ngrams: Counter, ngram-> number of times
                                     it was in text
        """
    ngrams = [text[i:i+n] for i in range(len(text)-n+1)]
    return Counter(ngrams)