Xor Counting