Find number of XOR pairs