count zeros in a given sorted array which have only zeros and one