import numpy as np
from collections import Counter
A = np.array([1, 1, 2, 4])
B = np.array([2, 3, 4, 5])
C = np.array([1, 1, 1, 1, 2, 1, 1])
D = np.array([2, 2, 2, 3, 4, 4, 3])
dict1 = Counter(zip(C, D))
print('A    B : Rowcount')
for i in zip(A, B):
    pass
Counting the intersection of equivalent rows in two tables