Count The Number Of Good Nodes