Get the number of allocated nodes.
Returns the number of nodes currently allocated. This includes both dead and active nodes.