Added node counting methods.