text=input()
count=0
words=text.split()
for w in words:
if w=="тел":
count=count + 1
print(count)
dGV4dD1pbnB1dCgpICAgICAgCmNvdW50PTAgICAgICAgICAgCndvcmRzPXRleHQuc3BsaXQoKSAgIApmb3IgdyBpbiB3b3JkczoKICAgIGlmIHc9PSLRgtC10LsiOgogICAgICAgIGNvdW50PWNvdW50ICsgMQpwcmludChjb3VudCk=