给定一段英文文本，请用Python统计其中每个单词出现的次数。 


文本：This is a sample sentence with several words.
```python
text = "This is a sample sentence with several words."

# Split the text into individual words
words = text.split()

# Create a dictionary to store the word counts
word_counts = {}

# Loop through the words and count how many times each word appears
for word in words:
    if word in word_counts:
        word_counts[word] += 1
    else:
        word_counts[word] = 1

# Print the word counts
for word, count in word_counts.items():
    print(f"{word}: {count}")
```

Output:

```
This: 1
is: 1
a: 1
sample: 1
sentence: 1
with: 1
several: 1
words.: 1
```