Count Occurrences Of Element In Numpy Array Reshape