Given a size
-D Array of numbers and a value
, determine how many occurences of
there are in each column.
Input Specification
The first line will contain
, and
.
The next
lines will each contain
integers, representing each value in the 2D Array. These values will be in the range of
to
.
Output Specification
Output integer on each line, representing the number of occurences of
for that column.
Sample Input 1
5 1
1 2 3 4 5
0 1 1 2 1
1 7 3 0 8
1 1 9 8 1
3 3 3 3 3
Sample Output 1
3
2
1
0
2
Comments