from typing import List


class Solution:

    def mostWordsFound(self, sentences: List[str]) ->int:
        ans = 0
        for s in sentences:
            l = s.split(' ')
            ans = max(ans, len(l))
        return ans

8cf8758fd59a17d1aa859a7b9f545065021a3c7c
<mask token>

<mask token>


class Solution:
    <mask token>

<mask token>


class Solution:

    def mostWordsFound(self, sentences: List[str]) ->int:
        ans = 0
        for s in sentences:
            l = s.split(' ')
            ans = max(ans, len(l))
        return ans

from typing import List


class Solution:

    def mostWordsFound(self, sentences: List[str]) ->int:
        ans = 0
        for s in sentences:
            l = s.split(' ')
            ans = max(ans, len(l))
        return ans
