N=int(input())
result=0
for i in range(N):
text=input()
known_word=[]
for word in text:
flag=True
if word not in known_word:
known_word.append(word)
present_word=word
else:
if word!=present_word:
flag=False
break
if flag==True:
result=result+1
print(result)
To embed this project on your website, copy the following code and paste it into your website's HTML: