Added function to count all nodes. Will try doing crossover with leaf nodes as well.