Fix case of broken conditions by properly counting them.