Added feature to show how many nodes were expanded