Don’t Count Your Chickens Before They’re Hatched (They Hatch)

What does the idiom “don’t count your chickens before they’re hatched” mean?

Definition: Don’t count on gains before they have actually occurred

Example: “I’ll be getting a bonus, so we can plan our vacation!” —”Don’t count your chickens before they’re hatched. You may or may not get a bonus.”