Count Occurance in Sorted Array