xiāo​zhì

to count one's chickens before they hatch