public int count(int intToCount, int[][] convolution) {
        int count = 0;
        for (int[] row : convolution) {
            for (Integer i : row) {
                if (i.equals(intToCount)) {
                    count++;
                }
            }
        }

        return count;
    }