counting diff node