What is the meaning of [Don’t count your chickens before they hatch.]

Don’t make plans based on future events that may not happen at all.

Example: X: I’ve to prepare for my campaign. Y: But you haven’t been nominated yet. Don’t count your chickens before they hatch.