the 'node' n shadowed the 'counter' n

this is purely cosmetic but I disliked how the outer `int n` was shadowed by the inner `node n`.  I don't claim it is incorrect, but at least over here, it smells a little funny.  ;-)