The wording is not clear to me, but if you don't want to know occurrences for the whole matrix, but each individual column, then use this:
int[][] matrix = new int[10][10];
int counter = 0;
int column = 0; // which column
int what = 10;
for(int i = 0; i < matrix.lenght; i++){
if(matrix[i][column] == what) counter++
}
EDIT:
let's rewrite the matrix, so that 1 means true (there's the number you're looking for) and 0 means false. So for instance which has 1s only in the last row
|0 0 0 0|
|0 0 0 0|
|0 0 0 0|
|1 1 1 1|
the average for rows is (0+0+0+4)/4 = 1
the average for columns is (1+1+1+1)/4 = 1
I really can't see how the average could be different.