Intro to Java Classwork: Word Counter
Write a Java program contained in a single file named "WordCounter.java"
that has the user enter a sentence containing at least three words.  It
is okay if the words and/or sentence contain punctuation symbols.  There
should be exactly one space between words, and there should not be any
spaces at the very start or the very end of the sentence.

After getting the sentence from the user, use a 'for' loop to determine
and report how many words are in the sentence; consider a word to be any
combination of contiguous characters with a space on either or both sides.

For this assignment, you are not permitted to put all of your code
in the 'main' method.  Instead, the code for getting the sentence from the
user, as well as the code for counting the number of words, must be put
into separate user methods, with the 'main' method consisting of only
calls to the two user methods.

For this program, other than the 'Scanner' class, you may not import
or use any external methods.  However, you may use global variables
in your program.  Your program's output should be neat, organized,
and easy to understand.


As always, all of your code must be your own, written entirely and
only by you within your online CodeHS.com account.  You must never
copy/paste, receive, view, or in any way use code that was created
or modified by another person, entity, or artificial intelligence.


Advanced Option #1
Determine and report how many spaces are in the user's sentence.

Advanced Option #2
Determine and report how many uppercase and lowercase letters
are in the sentence.

Advanced Option #3
Determine and report how many vowels and consonants are in the
sentence.

Advanced Option #4
Print the sentence with the order of the words reversed.
For example, if the user's sentence is
  I like lots of candy!
then the sentence with the order of the words reversed is
  candy! of lots like I