Given an `m x n` matrix and a target, return the number of non-empty submatrices that sum to target. Use 2D prefix-sum and hashing over columns (reduce to 1D for each pair of rows).
2D list of ints and target int.
Integer count.
Example 1:
Input:
matrix = [[0,1,0],[1,1,1],[0,1,0]] target = 0
Output:
4
Explanation:
There are 4 submatrices summing to 0.