Just as we expected. Very good. You put a lot of work into that report, which for inspection purposes might be considered overkill. Inspection is the programmer inspecting variables and states. For our purposes this would have sufficed…
Good that you are spending time writing code, though. Don’t get me wrong. Practice comes in many forms, and alot of coding is ‘on demand’ as we go. If it means a segue from the production stream, so be it. Kudos for your effort.
Now we can proceed to the next step. How would you envision we could count the sentences in the text?
Hint: What character indicates a full stop? In most languages it is the period,
., more commonly known these days as dot.
There are other sentence stoppers. Any symbols with a dot on the baseline are full stop tokens, grammatically speaking. These marks would include the following:
colon : such that a block quote or list would follow
question ? an interrogatory indicator
exclamation ! an exclamatory indicator
Consider how all this information can be incorporated into your solution.