Given a string s, return the number of segments in the string. A segment is defined to be a contiguous sequence of non-space characters.