def get_n_grams(token, grams_count):
    """
    returns the n_grams of a token
    :param token: ex. results
    :param grams_count: ex. 2
    :return: ['$r', 're', 'es', 'su', 'ul', 'lt', 'ts', 's$']
    """
    grams = [token[i:i + grams_count] for i in range(len(token) - grams_count + 1)]
    grams.append(grams[-1][-grams_count + 1:] + "$")
    grams.insert(0, "$" + grams[0][:grams_count - 1])
    return grams