Added the counting of 5-chains as a better performance measure.