Added static node counter. Made the member inline functions non inline