If you are flying east bound through a mass of air that is moving from east to west (opposite direction to your flight path) at 100 kts (pretty big headwind)  and your true airspeed is 250 knots your ground speed (speed over the ground) will be 150 knots. 

Simple as that. (Ground speed) "GS accounts for the wind" as you say in your question.