Matrix count zero segments