Added code to count leaves in spill tree and inserted the data into
graphs.