Economics

Why does the values added at all stages of production equal GDP? wouldn’t that be considered double counting?