Write a Python function `count_occurrences` that counts the number of times the substring `'std'` appears in a given string. The function should be case-sensitive and only count non-overlapping occurrences.
#### Example Usage
```python [main.nopy]
print(count_occurrences("letstdlenstdporstd")) # Output: 3
print(count_occurrences("truststdsolensporsd")) # Output: 1
print(count_occurrences("makestdsostdworthit")) # Output: 2
print(count_occurrences("stds")) # Output: 1
print(count_occurrences("")) # Output: 0
```