Problem Detail
I am stuck in this... I can calculate the number of times "the" and "to" will occur by using the count function but it will also include the occurrence in these and top which is not needed so how should I approach this question? I only know basic operators, Loops, Str Functions, etc
What I Tried
I thought that the exact occurrence would be having " " in its T[EndChar+1] But how will I get the index of ending char where it is occurring
N=input("")
print(N.count("the"))
# Input: these are the boxes
# Output: 2
# Expected Output: 1
# As I want the occurrence of "the" not "the" in "these"