Don’t count your chickens before the eggs have hatched
It means do not count on something that has not yet happened. You should not make plans that depend on something good happening, before you know that it has actually happened.
For example: She wanted to buy a dress in case someone asked her to the dance, but I told her not to count her chickens before they hatched.
The correct option is B.