Given a sorted binary array nums (containing only 0s and 1s, all 0s before all 1s), return the count of 0s in the array. Solve in O(log n).
Input: A sorted binary array nums (0s followed by 1s).
Output: Count of 0s.
Input: [0,0,0,1,1,1,1]
Output: 3
Explanation: First 1 is at index 3. Count of 0s = 3.Input: [0,0,0,0,0]
Output: 5
Explanation: All zeros. Count = 5.Input: [1,1,1,1]
Output: 0
Explanation: No zeros. Count = 0.1 <= nums.length <= 10^5nums[i] is 0 or 1Sorted: all 0s before all 1s