Given an array A of n elements. Your task is to complete the Function num which returns an integer denoting the total number of times digit k appears in the whole array.
Output=6 //Count of the digit 1 in the array
The first line of input contains an integer T denoting the no of test cases. Then T test cases follow. The first line of each test case contain an integer n denoting the size of the array A. Then in the second line are n space separated values of the array A .In the third line of each test case contains an integer k, which is the digit to be counted.
For each test case in a new line print the number of elements counted.
Example(To be used for expected output):
11 12 13 14 15
0 10 20 30