434. Number of Segments in a String (Easy)