Function to return count of pairs with x as one element of the pair . It mainly looks for all values in Y [ ] where x ^ Y [ i ] > Y [ i ] ^ x
static int count ( int x , int Y [ ] , int n , int NoOfY [ ] ) {