Assume that the operations as described in the text can be used to obtain a new node from the storage pool and to return nodes to the storage pool and that there is a special null value.
Write an algorithm to count the nodes in a linked list with first node pointed to by first.