Create a loop structure in python code to perform the following task
Calculate the total number of words in a given paragraph.
words = para.split(' ')
total = 0
for word in words:
    total += 1
print(total)