count only valid nodes/ways