Posted on July 6, 2021July 6, 2021 Description Submission class Solution: def countSegments(self, s: str) -> int: return len(s.split()) By Bill0412 Easy LeetCode