Count Reverse Pairs