P13522 [CodeChef] csixierl
NOI
题目描述

Given a string, count the number of aplhabets which are repeated

Input
The first line contains a single integer T <= 40, the number of test cases. T test cases follow. The only line of each test case contains a non-empty text composed only of letters of English alphabet. The length of the text is less then 100. There are no any spaces in the input..

Output
For each test case, output a single line containing the number of alphabets that are repeated in the corresponding text.

Example
Input:
3
aalmlc
aPlmFl
XcCnLb

Output:
2
1
1

输入格式

见题面

输出格式

见题面

样例输入
3 aalmlc aPlmFl XcCnLb
样例输出
2 1 1