Produce a Python script that counts the number of words in a sentence
Sentence: "The quick brown fox jumps over the lazy dog"
sentence = "The quick brown fox jumps over the lazy dog"

words = sentence.split()
print("The sentence has", len(words), "words.")