added a counter to track creation and destruction of linked list nodes.