count the number of node processes