1

#include

2

3

using namespace std;

4

int main()

5

{

6

int t;

7

cin>>t;

8

int n;

9

int c;

10

int count2=0;

11

while(t>0)

12

{

13

cin>>n;

14

cin>>c;

15

int a[n];

16

for( int i=0;i<n;i++)

17

{

18

```
cin>>a[i];
```

19

}

20

21

for(int i=0;i<n;i++)

22

{

23

int count1=0;

24

while(a[i]>0)

25

{

26

a[i]=a[i]/10;

27

```
count1++;
```

28

}

29

```
if(count1==c)
```

30

```
{
```

31

```
count2++;
```

32

```
}
```

33

}

34

cout<<count2;

35

t–;

36

}

37

return 0;

38

}

39