// Count Words in a String — EASY
// Category: string
Given a string `s`, return the number of words in it. Words are separated by one or more spaces. Leading and trailing spaces should be ignored.
Return `0` for an empty string or a string containing only spaces.
Example: s = "hello world"
Output: 2