An array consisting of sorted integers is given. You are required to answer queries: how many times does occur in the array.
The first line contains integers and q~(n, q \le 10^6). The next line contains integers given in increasing order. Each of the following lines contains the variable . The integers in the array do not exceed 10^9 in absolute value.
For each value of , output in separate lines the number of times occurs in the array.
Example 1
Example 3