Given a sorted array arr[] and a number x, write a program that counts the occurrences of x in arr[] using Binary search concept.