Number of defects method