Interesting. My first guess was 300,000.
The town I grew up in is about 1,000 people, and has a gas station. Most of the small towns around that one of comparable size also have a gas station. So I figured if the population is about 300,000,000 and people per gas-station is about 1,000, then there are about 300,000 gas stations in the U.S.