Added statistic to count number of spills.