Write a python function to count the number of words in a sentence that are longer than the given length.
sentence = "This is a sample sentence"
length = 4
def count_long_words(sentence, length):
    words = sentence.split()
    count = 0
    
    for word in words:
        if len(word) > length:
            count += 1
    return count