class Solution {
public:
int mostWordsFound(vector<string>& sentences) {
long countr=0;
for(int i=0;i<sentences.size();i++)
{
countr=max(countr,count(sentences[i].begin(),sentences[i].end(),' '));
}
return countr+1;
}
};