Thanks for the question! I’d say that these words are used in a fairly intuitive way. An “example” is just an instance of some general statement. A “counterexample” is similar, but goes against a general statement. An analogy compares two things.
Hope this helps! Feel free to ask any other questions that you might have.