Create a program that counts the number of words in a given sentence using the split() method.
sentence = "I am learning Python"

def count_words(sentence):
    words = sentence.split()
    return len(words)

word_count = count_words(sentence)
print(word_count)