count the cost

idiom

Definition of count the cost

: to feel the bad effects of a mistake, accident, etc. He was careless and now he's counting the cost.