You are given a list of sentences (each a string of words separated by single spaces, no leading/trailing spaces).
Return the maximum number of words that appear in a single sentence.
Input sentences are separated by '|' in the input string.
Input: A string of sentences separated by '|'. Each sentence has words separated by single spaces.
Output: An integer — the maximum word count across all sentences.
Input: alice and bob love leetcode|i think so too|this is great thanks very much
Output: 6
Explanation: The third sentence has 6 words — the most.Input: please wait|continue to fight|continue to win
Output: 3
Explanation: All sentences have 3 words.Input: a|a b|a b c
Output: 3
Explanation: Last sentence has 3 words.1 <= sentences.length <= 1001 <= sentences[i].length <= 100Each sentence has words separated by exactly one space