iterate over the array storyWords and add 1 to the sentence counter variable sentencesCount for each word that has a period or exclamation mark as its final