to feel the bad effects of a mistake, an accident, etc.
count the cost (of sth)
to feel the bad effects of a mistake, an accident, etc.
The town is now counting the cost of its failure to provide adequate flood protection.
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition