Better performance of changed nodes counting